mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-17 02:11:35 +00:00
34 lines
469 B
R
34 lines
469 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: (int) x :(int) y
|
|
{
|
|
[picture draw :x :y];
|
|
}
|
|
@end
|