|
UFO: Alien Invasion
|
#include <chr_shared.h>

Public Member Functions | |
| FiremodeSettings () | |
| bool | isSaneFiremode () const |
| int | getFmIdx () const |
| const objDef_t * | getWeapon () const |
| actorHands_t | getHand () const |
| void | setHand (const actorHands_t hand) |
| void | set (const actorHands_t hand, const fireDefIndex_t fmIdx, const objDef_t *weapon) |
Private Attributes | |
| actorHands_t | _hand |
| fireDefIndex_t | _fmIdx |
| const objDef_t * | _weapon |
Definition at line 145 of file chr_shared.h.
|
inline |
Definition at line 152 of file chr_shared.h.
References _fmIdx, _hand, _weapon, ACTOR_HAND_NOT_SET, and nullptr.
|
inline |
Definition at line 157 of file chr_shared.h.
References _fmIdx.
Referenced by AI_TryToReloadWeapon(), ReactionFire::canReact(), CL_ActorGetReactionFireFireDef(), G_ActorGetTUForReactionFire(), G_ActorHasWorkingFireModeSet(), G_ActorInvMove(), G_ClientShoot(), G_EventReactionFireChange(), ReactionFire::getFireDef(), HUD_PopupFiremodeReservation(), HUD_ReactionFireGetTUs(), and ReactionFire::tryToShoot().
|
inline |
Definition at line 165 of file chr_shared.h.
References _hand.
Referenced by AI_TryToReloadWeapon(), ReactionFire::canReact(), CL_ActorGetReactionFireFireDef(), G_ActorGetTUForReactionFire(), G_ActorHasWorkingFireModeSet(), G_ActorInvMove(), G_ClientShoot(), G_EventReactionFireChange(), ReactionFire::getFireDef(), HUD_PopupFiremodeReservation(), HUD_ReactionFireGetTUs(), and ReactionFire::tryToShoot().
|
inline |
Definition at line 161 of file chr_shared.h.
References _weapon.
Referenced by AI_TryToReloadWeapon(), G_ActorHasWorkingFireModeSet(), G_ActorInvMove(), G_ClientShoot(), G_EventReactionFireChange(), and HUD_PopupFiremodeReservation().
|
inline |
Definition at line 153 of file chr_shared.h.
References _fmIdx, _hand, _weapon, ACTOR_HAND_NOT_SET, and MAX_FIREDEFS_PER_WEAPON.
Referenced by G_ActorHasWorkingFireModeSet(), and ReactionFire::getFireDef().
|
inline |
Definition at line 173 of file chr_shared.h.
References _fmIdx, _hand, and _weapon.
Referenced by CL_ActorReactionFireChange(), CL_GenerateCharacter(), G_ReactionFireSettingsSetDefault(), G_ReactionFireSettingsUpdate(), and HUD_SetShootReservation().
|
inline |
Definition at line 169 of file chr_shared.h.
References _hand.
|
private |
Stores the used firemode index. Max. number is MAX_FIREDEFS_PER_WEAPON -1=undef
Definition at line 147 of file chr_shared.h.
Referenced by FiremodeSettings(), getFmIdx(), isSaneFiremode(), and set().
|
private |
the used hand, an enum
Definition at line 146 of file chr_shared.h.
Referenced by FiremodeSettings(), getHand(), isSaneFiremode(), set(), and setHand().
|
private |
Definition at line 148 of file chr_shared.h.
Referenced by FiremodeSettings(), getWeapon(), isSaneFiremode(), and set().