quakeforge/ruamoko/cl_menu/Frame.r
Brian Koropoff 3205f0f672 Added the HUDAnimation class and GIB bindings to use it, as well as other
enhancements and cleanups to the scriptable HUD system.
2003-05-23 04:29:01 +00:00

34 lines
494 B
R

#include "Frame.h"
#include "debug.h"
@implementation Frame : Object
- (id) initWithFile: (string) file duration: (float) time
{
self = [super init];
picture = [[QPic alloc] initName: file];
duration = time;
return self;
}
- (void) free
{
[picture free];
[super free];
}
- (Point) size
{
return [[Point alloc] initWithComponents :[picture width] :[picture height]];
}
- (float) duration
{
return duration;
}
- (void) draw: (integer) x :(integer) y
{
[picture draw :x :y];
}
@end