mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-11 07:42:18 +00:00
045e52cf14
protection macros consistent
42 lines
692 B
R
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
|