move todos to the wiki
[exterlulz-kokogems.git] / src / ScoreBubble.h
blob48883af393873787ddd53be98da8f5a7f9f5562a
1 //
2 // ScoreBubble.h
3 // jeweltoy
4 //
5 // Created by Mike Wessler on Sat Jun 15 2002.
6 //
7 /*
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 as published by the Free Software Foundation; either version 2
11 of the License, or (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 ----====----====----====----====----====----====----====----====----====---- */
23 #import <Cocoa/Cocoa.h>
25 @class OpenGLSprite;
27 @interface ScoreBubble : NSObject
29 int _value;
30 NSPoint _screenLocation;
31 int _animationCount;
32 NSImage *_image;
34 OpenGLSprite *sprite;
37 // TODO: remove, not used?
38 @property (readonly) int value;
39 @property (readonly) NSPoint screenLocation;
40 @property int animationCount;
41 @property (readonly, assign) NSImage *image;
43 + (ScoreBubble *)scoreWithValue:(int)value at:(NSPoint)location duration:(int)count;
45 - (id)initWithValue:(int)value at:(NSPoint)location duration:(int)count;
47 - (void)drawImage;
48 - (void)drawSprite;
50 - (int)animate;
52 @end