quakeforge/ruamoko/cl_menu/Frame.r
Bill Currie b0879ba255 Convert Point, Size and Rect to structs.
Group and the menu plist parser are currently broken.
2010-11-24 17:01:17 +09:00

34 lines
477 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) dealloc
{
[picture release];
[super dealloc];
}
- (Size) size
{
return makeSize ([picture width], [picture height]);
}
- (float) duration
{
return duration;
}
- (void) draw: (integer) x :(integer) y
{
[picture draw :x :y];
}
@end