2003-05-14 21:17:32 +00:00
|
|
|
#include "Point.h"
|
|
|
|
|
|
|
|
@interface HUDObject : Object
|
|
|
|
{
|
2003-05-15 06:49:10 +00:00
|
|
|
Point origin, size;
|
2003-05-14 21:17:32 +00:00
|
|
|
BOOL visible;
|
|
|
|
integer handle;
|
|
|
|
}
|
|
|
|
|
|
|
|
+ (void) initClass;
|
|
|
|
- (id) initWithComponents: (integer) x : (integer) y;
|
|
|
|
- (void) free;
|
|
|
|
- (integer) handle;
|
|
|
|
- (Point) origin;
|
|
|
|
- (void) setOrigin: (Point) newPoint;
|
|
|
|
- (void) translate: (Point) addPoint;
|
2003-05-15 06:49:10 +00:00
|
|
|
- (Point) size;
|
|
|
|
//- (void) center Horizontal: (BOOL) h Vertical: (BOOL) v;
|
2003-05-14 21:17:32 +00:00
|
|
|
- (BOOL) isVisible;
|
|
|
|
- (void) setVisible: (BOOL) _visible;
|
|
|
|
- (void) display;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface HUDText : HUDObject
|
|
|
|
{
|
|
|
|
string text;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (id) initWithComponents: (integer) x :(integer) y :(string) _text;
|
|
|
|
- (string) text;
|
|
|
|
- (void) setText: (string) _text;
|
|
|
|
- (void) display;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface HUDGraphic : HUDObject
|
|
|
|
{
|
|
|
|
QPic picture;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (id) initWithComponents: (integer)x :(integer)y :(string) _file;
|
|
|
|
- (void) free;
|
|
|
|
- (void) setFile: (string) _file;
|
|
|
|
- (void) display;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@extern void () HUD_Init;
|
|
|
|
@extern integer HUDHandleClass;
|