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