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 138 of file chr_shared.h.
|
inline |
Definition at line 145 of file chr_shared.h.
|
inline |
Definition at line 150 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 158 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 154 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 146 of file chr_shared.h.
References ACTOR_HAND_NOT_SET, and MAX_FIREDEFS_PER_WEAPON.
Referenced by G_ActorHasWorkingFireModeSet(), and ReactionFire::getFireDef().
|
inline |
Definition at line 166 of file chr_shared.h.
Referenced by CL_ActorReactionFireChange(), CL_GenerateCharacter(), G_ReactionFireSettingsSetDefault(), G_ReactionFireSettingsUpdate(), HUD_SetShootReservation(), and character_s::init().
|
inline |
Definition at line 162 of file chr_shared.h.
|
private |
Stores the used firemode index. Max. number is MAX_FIREDEFS_PER_WEAPON -1=undef
Definition at line 140 of file chr_shared.h.
Referenced by getFmIdx().
|
private |
|
private |
Definition at line 141 of file chr_shared.h.
Referenced by getWeapon().