quakeforge/ruamoko/lib/entity.r
2002-08-15 21:00:51 +00:00

42 lines
692 B
R

#include "entity.h"
void (entity e, vector o) setorigin = #2;
void (entity e, string m) setmodel = #3;
void (entity e, vector min, vector max) setsize = #4;
entity () spawn = #14;
void (entity e) remove = #15;
entity (entity start, .string fld, string match) find = #18;
entity (vector org, float rad) findradius = #22;
entity (entity e) nextent = #47;
void (entity e) makestatic = #69;
void (entity e) setspawnparms = #78;
@implementation Entity
-init
{
return [self initWithEntity:[self new]];
}
-initWithEntity:(entity)e
{
self.ent = e;
e.@this = self;
return self;
}
-free
{
remove (self.ent);
return [super free];
}
-new
{
return spawn ();
}
-ent
{
return self.ent;
}
@end