mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-07 05:30:31 +00:00
3a1e467ae8
Sadly, there are many bogus warnings and other errors. qfcc is still very sick :(.
69 lines
1.3 KiB
Objective-C
69 lines
1.3 KiB
Objective-C
#include "Frame.h"
|
|
#include "Array.h"
|
|
|
|
#include "gui/Point.h"
|
|
#include "gui/Size.h"
|
|
|
|
@interface HUDObject : Object
|
|
{
|
|
Point origin;
|
|
BOOL visible;
|
|
integer handle;
|
|
}
|
|
|
|
- (id) initWithComponents: (integer) x : (integer) y;
|
|
- (void) dealloc;
|
|
- (integer) handle;
|
|
- (Point) origin;
|
|
- (Size) size;
|
|
- (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;
|
|
- (Size) size;
|
|
- (string) text;
|
|
- (void) setText: (string) _text;
|
|
- (void) display;
|
|
@end
|
|
|
|
@interface HUDGraphic : HUDObject
|
|
{
|
|
QPic *picture;
|
|
}
|
|
|
|
- (id) initWithComponents: (integer)x :(integer)y :(string) _file;
|
|
- (void) dealloc;
|
|
- (Size) size;
|
|
- (void) setFile: (string) _file;
|
|
- (void) display;
|
|
@end
|
|
|
|
@extern void () HUD_Init;
|
|
@extern integer HUDHandleClass;
|
|
|
|
@interface HUDAnimation : HUDObject
|
|
{
|
|
Array *frames;
|
|
integer currentFrame;
|
|
float nextFrameTime;
|
|
BOOL looping;
|
|
}
|
|
- (id) initWithComponents: (integer) x :(integer) y;
|
|
- (void) dealloc;
|
|
- (Size) size;
|
|
- (void) addFrame: (Frame *) frame;
|
|
- (void) changeFrame;
|
|
- (void) display;
|
|
- (void) start;
|
|
- (void) stop;
|
|
- (void) setLooping: (BOOL) _looping;
|
|
@end
|