2003-05-23 04:29:01 +00:00
|
|
|
#include "Frame.h"
|
|
|
|
#include "Array.h"
|
2003-05-14 21:17:32 +00:00
|
|
|
|
2010-11-17 06:50:07 +00:00
|
|
|
#include "gui/Point.h"
|
|
|
|
#include "gui/Size.h"
|
2004-02-03 08:31:26 +00:00
|
|
|
|
2003-05-14 21:17:32 +00:00
|
|
|
@interface HUDObject : Object
|
|
|
|
{
|
2003-05-23 04:29:01 +00:00
|
|
|
Point origin;
|
2003-05-14 21:17:32 +00:00
|
|
|
BOOL visible;
|
|
|
|
integer handle;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (id) initWithComponents: (integer) x : (integer) y;
|
2003-07-29 19:55:41 +00:00
|
|
|
- (void) dealloc;
|
2003-05-14 21:17:32 +00:00
|
|
|
- (integer) handle;
|
|
|
|
- (Point) origin;
|
2010-11-17 06:50:07 +00:00
|
|
|
- (Size) size;
|
2003-05-14 21:17:32 +00:00
|
|
|
- (void) setOrigin: (Point) newPoint;
|
|
|
|
- (void) translate: (Point) addPoint;
|
|
|
|
- (BOOL) isVisible;
|
|
|
|
- (void) setVisible: (BOOL) _visible;
|
|
|
|
- (void) display;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface HUDText : HUDObject
|
|
|
|
{
|
|
|
|
string text;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (id) initWithComponents: (integer) x :(integer) y :(string) _text;
|
2010-11-17 06:50:07 +00:00
|
|
|
- (Size) size;
|
2003-05-14 21:17:32 +00:00
|
|
|
- (string) text;
|
|
|
|
- (void) setText: (string) _text;
|
|
|
|
- (void) display;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface HUDGraphic : HUDObject
|
|
|
|
{
|
2011-01-09 10:41:24 +00:00
|
|
|
QPic []picture;
|
2003-05-14 21:17:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (id) initWithComponents: (integer)x :(integer)y :(string) _file;
|
2003-07-29 19:55:41 +00:00
|
|
|
- (void) dealloc;
|
2010-11-17 06:50:07 +00:00
|
|
|
- (Size) size;
|
2003-05-14 21:17:32 +00:00
|
|
|
- (void) setFile: (string) _file;
|
|
|
|
- (void) display;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@extern void () HUD_Init;
|
|
|
|
@extern integer HUDHandleClass;
|
2003-05-23 04:29:01 +00:00
|
|
|
|
|
|
|
@interface HUDAnimation : HUDObject
|
|
|
|
{
|
2011-01-09 10:41:24 +00:00
|
|
|
Array []frames;
|
2003-05-23 04:29:01 +00:00
|
|
|
integer currentFrame;
|
|
|
|
float nextFrameTime;
|
|
|
|
BOOL looping;
|
|
|
|
}
|
|
|
|
- (id) initWithComponents: (integer) x :(integer) y;
|
2003-07-29 19:55:41 +00:00
|
|
|
- (void) dealloc;
|
2010-11-17 06:50:07 +00:00
|
|
|
- (Size) size;
|
2011-01-09 10:41:24 +00:00
|
|
|
- (void) addFrame: (Frame []) frame;
|
2003-05-23 04:29:01 +00:00
|
|
|
- (void) changeFrame;
|
|
|
|
- (void) display;
|
|
|
|
- (void) start;
|
|
|
|
- (void) stop;
|
|
|
|
- (void) setLooping: (BOOL) _looping;
|
|
|
|
@end
|