mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-30 16:10:53 +00:00
29 lines
276 B
R
29 lines
276 B
R
|
#include "Entity.h"
|
||
|
|
||
|
@implementation Entity
|
||
|
|
||
|
- (id) init
|
||
|
{
|
||
|
return [self initWithEntity: spawn ()];
|
||
|
}
|
||
|
|
||
|
- (id) initWithEntity: (entity)e
|
||
|
{
|
||
|
ent = e;
|
||
|
ent.@this = self;
|
||
|
return self;
|
||
|
}
|
||
|
|
||
|
- (void) free
|
||
|
{
|
||
|
remove (ent);
|
||
|
[super free];
|
||
|
}
|
||
|
|
||
|
- (entity) ent
|
||
|
{
|
||
|
return self.ent;
|
||
|
}
|
||
|
|
||
|
@end
|