quakeforge/ruamoko/cl_menu/Frame.r

35 lines
469 B
R
Raw Normal View History

#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;
}
2003-07-29 19:55:41 +00:00
- (void) dealloc
{
[picture release];
2003-07-29 19:55:41 +00:00
[super dealloc];
}
- (Size) size
{
return makeSize ([picture width], [picture height]);
}
- (float) duration
{
return duration;
}
- (void) draw: (int) x :(int) y
{
[picture draw :x :y];
}
@end