UFO: Alien Invasion
FiremodeSettings Class Reference

#include <chr_shared.h>

Collaboration diagram for FiremodeSettings:
Collaboration graph

Public Member Functions

 FiremodeSettings ()
 
bool isSaneFiremode () const
 
int getFmIdx () const
 
const objDef_tgetWeapon () 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
 

Detailed Description

Definition at line 145 of file chr_shared.h.

Constructor & Destructor Documentation

◆ FiremodeSettings()

FiremodeSettings::FiremodeSettings ( )
inline

Definition at line 152 of file chr_shared.h.

Member Function Documentation

◆ getFmIdx()

◆ getHand()

◆ getWeapon()

const objDef_t * FiremodeSettings::getWeapon ( ) const
inline

◆ isSaneFiremode()

bool FiremodeSettings::isSaneFiremode ( ) const
inline

◆ set()

void FiremodeSettings::set ( const actorHands_t  hand,
const fireDefIndex_t  fmIdx,
const objDef_t weapon 
)
inline

◆ setHand()

void FiremodeSettings::setHand ( const actorHands_t  hand)
inline

Definition at line 169 of file chr_shared.h.

References _hand.

Field Documentation

◆ _fmIdx

fireDefIndex_t FiremodeSettings::_fmIdx
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 getFmIdx(), isSaneFiremode(), and set().

◆ _hand

actorHands_t FiremodeSettings::_hand
private

the used hand, an enum

Definition at line 146 of file chr_shared.h.

Referenced by getHand(), isSaneFiremode(), set(), and setHand().

◆ _weapon

const objDef_t* FiremodeSettings::_weapon
private

Definition at line 148 of file chr_shared.h.

Referenced by getWeapon(), isSaneFiremode(), and set().


The documentation for this class was generated from the following file: