|
UFO: Alien Invasion
|
An Edict of type Actor. More...
#include <g_edict.h>


Public Member Functions | |
| int | getMorale () const |
| bool | isState (int flag) const |
| bool | isShaken () const |
| bool | isStunned () const |
| bool | isPanicked () const |
| bool | isReaction () const |
| bool | isRaged () const |
| bool | isInsane () const |
| bool | isDazed () const |
| bool | isCrouched () const |
| bool | isDead () const |
| void | setState (int flag) |
| void | setShaken () |
| void | setStunned () |
| void | setPanicked () |
| void | setReaction () |
| void | setRaged () |
| void | setInsane () |
| void | setDazed () |
| void | setCrouched () |
| void | unsetState (int flag) |
| void | removeShaken () |
| void | removeStunned () |
| void | removePanicked () |
| void | removeReaction () |
| void | removeRaged () |
| void | removeInsane () |
| void | removeDazed () |
| void | removeCrouched () |
| unsigned int | getBody () const |
| void | setBody (unsigned int body_) |
| unsigned int | getHead () const |
| void | setHead (unsigned int head_) |
| int | getUsableTUs () const |
| Calculates the amount of usable TUs. This is without the reserved TUs. | |
| bool | isInRescueZone () const |
| Checks whether the given actor is currently standing in a rescue zone. | |
| void | setInRescueZone (bool inRescueZone_) |
| Set the rescue zone flag. | |
| Public Member Functions inherited from Edict | |
| void | init (int idx) |
| void | setPlayerNum (int num) |
| void | setTeam (int team_) |
| void | setChild (Edict *child) |
| void | nativeReset () |
| void | setActive () |
| void | toggleActive () |
| void | resetContainer (const containerIndex_t idx) |
| void | setFloor (const Edict *other) |
| void | resetFloor () |
| void | calcOrigin () |
| Calculate the edict's origin vector from it's grid position. | |
| void | setOrigin (const pos3_t newPos) |
| Set the edict's pos and origin vector to the given grid position. | |
| int | getIdNum () const |
| int | getPlayerNum () const |
| Edict * | child () |
| Edict * | owner () |
| Item * | getContainer (const containerIndex_t idx) const |
| Item * | getArmour () const |
| Item * | getRightHandItem () const |
| Item * | getLeftHandItem () const |
| Item * | getHandItem (actorHands_t hand) const |
| Item * | getFloor () const |
| Player & | getPlayer () const |
| int | getTeam () const |
| bool | isSameAs (const Edict *other) const |
| bool | isSameTeamAs (const Edict *other) const |
| bool | isSamePosAs (const pos3_t cmpPos) |
| Check whether the edict is on the given position. | |
| bool | isOpponent (const Actor *actor) const |
| Check if given actor is an enemy. | |
| void | setStun (int stu) |
| void | addStun (int stu) |
| int | getStun () const |
| void | setMorale (int mor) |
| void | setTus (int tus) |
| int | getTus () const |
| void | setTouch (bool(*touch_)(Edict *self, Edict *activator)) |
| bool | hasTouch () const |
| bool | callTouch (Edict *activator) |
| int | getReservedTUs () const |
| Calculates the amount of all currently reserved TUs. | |
|
inline |
Definition at line 384 of file g_edict.h.
References Edict::body.
Referenced by G_EventActorAppear().
|
inline |
Definition at line 390 of file g_edict.h.
References Edict::head.
Referenced by G_EventActorAppear().
|
inline |
|
inline |
Calculates the amount of usable TUs. This is without the reserved TUs.
Definition at line 400 of file g_edict.h.
References Edict::getReservedTUs(), and Edict::getTus().
Referenced by actorL_TU(), AI_CheckForMissionTargets(), AI_CivilianCalcActionScore(), AI_FighterCalcActionScore(), AI_PanicCalcActionScore(), AI_PrepBestAction(), AI_TurnIntoDirection(), and AIL_positionshoot().
|
inline |
Definition at line 361 of file g_edict.h.
References isState(), and STATE_CROUCHED.
Referenced by AI_CheckLineOfFire(), AI_TurnIntoDirection(), G_ActorMoveLength(), G_ActorSetMaxs(), G_CalcEffectiveSpread(), G_ClientMove(), G_ClientShoot(), G_ClientStateChange(), and G_WriteStep().
|
inline |
Definition at line 360 of file g_edict.h.
References isState(), and STATE_DAZED.
Referenced by ReactionFire::canReact(), and G_ActorGiveTimeUnits().
|
inline |
Definition at line 362 of file g_edict.h.
References isState(), and STATE_DEAD.
Referenced by actorL_isdead(), AI_ActorThink(), AI_PrepBestAction(), G_ActorDie(), G_ActorSetMaxs(), G_ActorStun(), G_ClientMove(), G_ClientShoot(), G_ShootGrenade(), G_ShootSingle(), G_UpdateCharacterBodycount(), TEST_F(), and TEST_F().
|
inline |
Checks whether the given actor is currently standing in a rescue zone.
true if the actor is standing in a rescue zone, false otherwise. Definition at line 407 of file g_edict.h.
References Edict::inRescueZone.
Referenced by G_MatchSendResults(), and setInRescueZone().
|
inline |
Definition at line 359 of file g_edict.h.
References isState(), and STATE_INSANE.
Referenced by actorL_morale(), AI_CalcShotDamage(), AI_CheckPosition(), AI_CivilianCalcActionScore(), AI_FighterCheckShoot(), AI_FindBestFiredef(), AI_IsHostile(), AI_PanicCalcActionScore(), G_MoralePanic(), G_MoraleRage(), and ReactionFire::shoot().
|
inline |
Definition at line 356 of file g_edict.h.
References isState(), and STATE_PANIC.
Referenced by actorL_morale(), AI_ActorThink(), AI_CivilianCalcActionScore(), AI_PrepBestAction(), G_MoraleBehaviour(), and ReactionFire::shoot().
|
inline |
Definition at line 358 of file g_edict.h.
References isState(), and STATE_RAGE.
Referenced by actorL_morale(), AI_FighterCalcActionScore(), AI_FindBestFiredef(), G_MoraleBehaviour(), and ReactionFire::shoot().
|
inline |
Definition at line 357 of file g_edict.h.
References isState(), and STATE_REACTION.
Referenced by AI_FindBestFiredef(), ReactionFire::canReact(), G_ClientStateChange(), and G_ReactionFireSettingsUpdate().
|
inline |
Definition at line 354 of file g_edict.h.
References isState(), and STATE_SHAKEN.
Referenced by G_ClientStateChange(), ReactionFire::isEnemy(), and ReactionFire::shoot().
|
inline |
Definition at line 353 of file g_edict.h.
References Edict::state.
Referenced by isCrouched(), isDazed(), isDead(), isInsane(), Edict::isOpponent(), isPanicked(), isRaged(), isReaction(), isShaken(), and isStunned().
|
inline |
Definition at line 355 of file g_edict.h.
References isState(), STATE_DEAD, and STATE_STUN.
Referenced by AI_CalcShotDamage(), AI_FindBestFiredef(), G_ActorCheckRevitalise(), G_ActorDie(), G_ActorDieOrStun(), G_ActorRevitalise(), G_ClientShoot(), G_MatchEndCheck(), G_TouchTriggers(), G_TreatActor(), and G_UpdateCharacterBodycount().
|
inline |
Definition at line 382 of file g_edict.h.
References STATE_CROUCHED, and unsetState().
Referenced by G_MoralePanic().
|
inline |
Definition at line 381 of file g_edict.h.
References STATE_DAZED, and unsetState().
Referenced by G_ActorGiveTimeUnits().
|
inline |
Definition at line 380 of file g_edict.h.
References STATE_INSANE, and unsetState().
Referenced by G_MoraleStopPanic(), and G_MoraleStopRage().
|
inline |
Definition at line 377 of file g_edict.h.
References STATE_PANIC, and unsetState().
Referenced by G_MoraleStopPanic().
|
inline |
Definition at line 379 of file g_edict.h.
References STATE_RAGE, and unsetState().
Referenced by G_MoraleStopRage().
|
inline |
Definition at line 378 of file g_edict.h.
References STATE_REACTION, and unsetState().
Referenced by ReactionFire::canReact(), G_ClientStateChange(), and G_Damage().
|
inline |
Definition at line 375 of file g_edict.h.
References STATE_SHAKEN, and unsetState().
Referenced by G_ReactionFireReset(), and ReactionFire::tryToShoot().
|
inline |
Definition at line 376 of file g_edict.h.
References STATE_STUN, and unsetState().
Referenced by G_ActorDie(), and G_ActorRevitalise().
Definition at line 387 of file g_edict.h.
References Edict::body.
Referenced by AI_InitPlayer(), and G_ClientAssignDefaultActorValues().
|
inline |
Definition at line 372 of file g_edict.h.
References setState(), and STATE_CROUCHED.
|
inline |
Definition at line 371 of file g_edict.h.
References setState(), and STATE_DAZED.
Referenced by G_Damage().
Definition at line 393 of file g_edict.h.
References Edict::head.
Referenced by AI_InitPlayer(), and G_ClientAssignDefaultActorValues().
|
inline |
Set the rescue zone flag.
| [in] | inRescueZone_ | true if the actor is in the rescue zone, false otherwise |
Definition at line 414 of file g_edict.h.
References Edict::inRescueZone, and isInRescueZone().
Referenced by Reset_RescueTrigger(), and Touch_RescueTrigger().
|
inline |
Definition at line 370 of file g_edict.h.
References setState(), and STATE_INSANE.
Referenced by G_MoraleBehaviour().
|
inline |
Definition at line 367 of file g_edict.h.
References setState(), and STATE_PANIC.
Referenced by G_MoralePanic().
|
inline |
Definition at line 369 of file g_edict.h.
References setState(), and STATE_RAGE.
Referenced by G_MoraleRage().
|
inline |
Definition at line 368 of file g_edict.h.
References setState(), and STATE_REACTION.
|
inline |
Definition at line 365 of file g_edict.h.
References setState(), and STATE_SHAKEN.
Referenced by G_MoraleBehaviour().
Definition at line 364 of file g_edict.h.
References Edict::state.
Referenced by setCrouched(), setDazed(), setInsane(), setPanicked(), setRaged(), setReaction(), setShaken(), and setStunned().
|
inline |
Definition at line 366 of file g_edict.h.
References setState(), and STATE_STUN.
Definition at line 374 of file g_edict.h.
References Edict::state.
Referenced by removeCrouched(), removeDazed(), removeInsane(), removePanicked(), removeRaged(), removeReaction(), removeShaken(), and removeStunned().