31 #include "../shared/ufotypes.h" 330 return _touch(
this, activator);
415 if (inRescueZone_ == isInRescueZone())
bool isSameAs(const Edict *other) const
bool isOpponent(const Actor *actor) const
Check if given actor is an enemy.
#define VectorCopy(src, dest)
camera_edict_data_t camera
Item * getLeftHandContainer() const
void setFloor(const Edict *other)
void resetContainer(const containerIndex_t idx)
Artificial intelligence of a character.
void setFloorContainer(Item *cont)
Item * getRightHandContainer() const
bool(* destroy)(Edict *self)
Item * getRightHandItem() const
actorSizeEnum_t fieldSize
Describes a character with all its attributes.
void setBody(unsigned int body_)
void setTouch(bool(*touch_)(Edict *self, Edict *activator))
solid_t
edict->solid values
void resetContainer(const containerIndex_t idx)
Item * getLeftHandItem() const
bool isSameTeamAs(const Edict *other) const
bool callTouch(Edict *activator)
bool isState(int flag) const
void(* think)(Edict *self)
chrReservations_t reservedTus
Actor * makeActor(Edict *ent)
Convert an Edict pointer into an Actor pointer.
Item * getFloorContainer() const
Item * getHandItem(actorHands_t hand) const
void setHead(unsigned int head_)
void unsetState(int flag)
Item * getContainer(const containerIndex_t idx) const
Player & getPlayer() const
edictMaterial_t
e.g. used for breakable objects
item instance data, with linked list capability
Item * getContainer2(const containerIndex_t idx) const
bool(* use)(Edict *self, Edict *activator)
void setInRescueZone(bool inRescueZone_)
Set the rescue zone flag.
Interface to game library.
QGL_EXTERN void(APIENTRY *qglActiveTexture)(GLenum texture)
#define VectorCompare(a, b)
pos3_t * forbiddenListPos
linkedList_t * touchedList
void calcOrigin()
Calculate the edict's origin vector from it's grid position.
bool isInRescueZone() const
Checks whether the given actor is currently standing in a rescue zone.
void setPlayerNum(int num)
bool(* _touch)(Edict *self, Edict *activator)
void(* reset)(Edict *self, Edict *activator)
bool isSamePosAs(const pos3_t cmpPos)
Check whether the edict is on the given position.
void setChild(Edict *child)
int getUsableTUs() const
Calculates the amount of usable TUs. This is without the reserved TUs.
unsigned int getBody() const
unsigned int getHead() const
void setOrigin(const pos3_t newPos)
Set the edict's pos and origin vector to the given grid position.
How many TUs (and of what type) did a player reserve for a unit?
int getReservedTUs() const
Calculates the amount of all currently reserved TUs.