Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Enumerations | Functions | Variables
entities Namespace Reference

Enumerations

enum  {
  TRIG_COLLIDE = 1<<0, TRIG_TOGGLE = 1<<1, TRIG_ONCE = 0<<2, TRIG_MANY = 1<<2,
  TRIG_DISAPPEAR = 1<<3, TRIG_AUTO_RESET = 1<<4, TRIG_RUMBLE = 1<<5, TRIG_LOCKED = 1<<6,
  TRIG_ENDSP = 1<<7
}
 

Functions

int extraentinfosize ()
 
void writeent (entity &e, char *buf)
 
void readent (entity &e, char *buf, int ver)
 
vector< extentity * > & getents ()
 
bool mayattach (extentity &e)
 
bool attachent (extentity &e, extentity &a)
 
const char * itemname (int i)
 
int itemicon (int i)
 
const char * entmdlname (int type)
 
const char * entmodel (const entity &e)
 
void preloadentities ()
 
void renderentities ()
 
void addammo (int type, int &v, bool local)
 
void repammo (fpsent *d, int type, bool local)
 
void pickupeffects (int n, fpsent *d)
 
void teleporteffects (fpsent *d, int tp, int td, bool local)
 
void jumppadeffects (fpsent *d, int jp, bool local)
 
void teleport (int n, fpsent *d)
 
void trypickup (int n, fpsent *d)
 
void checkitems (fpsent *d)
 
void checkquad (int time, fpsent *d)
 
void putitems (packetbuf &p)
 
void resetspawns ()
 
void spawnitems (bool force)
 
void setspawn (int i, bool on)
 
extentitynewentity ()
 
void deleteentity (extentity *e)
 
void clearents ()
 
static void cleartriggerflags (extentity &e)
 
static void setuptriggerflags (fpsentity &e)
 
void resettriggers ()
 
void unlocktriggers (int tag, int oldstate=TRIGGER_RESET, int newstate=TRIGGERING)
 
 ICOMMAND (trigger,"ii",(int *tag, int *state),{if(*state) unlocktriggers(*tag);else unlocktriggers(*tag, TRIGGERED, TRIGGER_RESETTING);})
 
 VAR (triggerstate,-1, 0, 1)
 
void doleveltrigger (int trigger, int state)
 
void checktriggers ()
 
void animatemapmodel (const extentity &e, int &anim, int &basetime)
 
void fixentity (extentity &e)
 
void entradius (extentity &e, bool color)
 
bool printent (extentity &e, char *buf, int len)
 
const char * entnameinfo (entity &e)
 
const char * entname (int i)
 
void editent (int i, bool local)
 
float dropheight (entity &e)
 
bool hasmapmodel (const extentity &e)
 
bool delayspawn (int type)
 Returns whether the ammo entity gets spawned at mapstart. More...
 

Variables

vector< extentity * > ents
 
static const int NUMTRIGGERTYPES = 32
 
static const int triggertypes [NUMTRIGGERTYPES]
 

Enumeration Type Documentation

anonymous enum
Enumerator
TRIG_COLLIDE 
TRIG_TOGGLE 
TRIG_ONCE 
TRIG_MANY 
TRIG_DISAPPEAR 
TRIG_AUTO_RESET 
TRIG_RUMBLE 
TRIG_LOCKED 
TRIG_ENDSP 

Function Documentation

void entities::addammo ( int  type,
int &  v,
bool  local 
)
void entities::animatemapmodel ( const extentity e,
int &  anim,
int &  basetime 
)
bool entities::attachent ( extentity e,
extentity a 
)

Referenced by attachentity().

void entities::checkitems ( fpsent d)
void entities::checkquad ( int  time,
fpsent d 
)
void entities::checktriggers ( )
void entities::clearents ( )

References deleteentity(), and ents.

Referenced by resetmap().

static void entities::cleartriggerflags ( extentity e)
inlinestatic
bool entities::delayspawn ( int  type)
inline

Returns whether the ammo entity gets spawned at mapstart.

References I_BOOST, I_GREENARMOUR, I_QUAD, and I_YELLOWARMOUR.

Referenced by server::loaditems(), server::parsepacket(), and spawnitems().

void entities::deleteentity ( extentity e)

Referenced by clearents(), load_world(), and newentity().

void entities::doleveltrigger ( int  trigger,
int  state 
)
float entities::dropheight ( entity e)

References BASE, FLAG, and entity::type.

Referenced by dropheight().

void entities::editent ( int  i,
bool  local 
)
const char * entities::entmdlname ( int  type)
const char * entities::entmodel ( const entity e)
const char * entities::entname ( int  i)
const char * entities::entnameinfo ( entity e)

Referenced by entname().

void entities::entradius ( extentity e,
bool  color 
)
int entities::extraentinfosize ( )

Referenced by load_world(), and save_world().

void entities::fixentity ( extentity e)
vector< extentity * > & entities::getents ( )
bool entities::hasmapmodel ( const extentity e)
entities::ICOMMAND ( trigger  ,
"ii"  ,
(int *tag, int *state)  ,
{if(*state) unlocktriggers(*tag);else unlocktriggers(*tag, TRIGGERED, TRIGGER_RESETTING);}   
)
int entities::itemicon ( int  i)
const char * entities::itemname ( int  i)
void entities::jumppadeffects ( fpsent d,
int  jp,
bool  local 
)
bool entities::mayattach ( extentity e)

Referenced by attachentity().

extentity * entities::newentity ( )
void entities::pickupeffects ( int  n,
fpsent d 
)
void entities::preloadentities ( )
bool entities::printent ( extentity e,
char *  buf,
int  len 
)

Referenced by printent().

void entities::putitems ( packetbuf p)
void entities::readent ( entity e,
char *  buf,
int  ver 
)
void entities::renderentities ( )
void entities::repammo ( fpsent d,
int  type,
bool  local 
)
void entities::resetspawns ( )

References ents, and loopv.

Referenced by game::changemapserv(), and game::startmap().

void entities::resettriggers ( )
void entities::setspawn ( int  i,
bool  on 
)

References ents.

Referenced by game::parsemessages().

static void entities::setuptriggerflags ( fpsentity e)
inlinestatic
void entities::spawnitems ( bool  force)
void entities::teleport ( int  n,
fpsent d 
)
void entities::teleporteffects ( fpsent d,
int  tp,
int  td,
bool  local 
)
void entities::trypickup ( int  n,
fpsent d 
)
void entities::unlocktriggers ( int  tag,
int  oldstate = TRIGGER_RESET,
int  newstate = TRIGGERING 
)
entities::VAR ( triggerstate  ,
1,
,
 
)
void entities::writeent ( entity e,
char *  buf 
)

Referenced by save_world().

Variable Documentation

vector< extentity * > entities::ents
const int entities::NUMTRIGGERTYPES = 32
static
const int entities::triggertypes[NUMTRIGGERTYPES]
static