UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
FiremodeSettings Class Reference

#include <chr_shared.h>

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 138 of file chr_shared.h.

Constructor & Destructor Documentation

FiremodeSettings::FiremodeSettings ( )
inline

Definition at line 145 of file chr_shared.h.

Member Function Documentation

const objDef_t* FiremodeSettings::getWeapon ( ) const
inline
bool FiremodeSettings::isSaneFiremode ( ) const
inline
void FiremodeSettings::set ( const actorHands_t  hand,
const fireDefIndex_t  fmIdx,
const objDef_t weapon 
)
inline
void FiremodeSettings::setHand ( const actorHands_t  hand)
inline

Definition at line 162 of file chr_shared.h.

Field Documentation

fireDefIndex_t FiremodeSettings::_fmIdx
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().

actorHands_t FiremodeSettings::_hand
private

the used hand, an enum

Definition at line 139 of file chr_shared.h.

Referenced by getHand().

const objDef_t* FiremodeSettings::_weapon
private

Definition at line 141 of file chr_shared.h.

Referenced by getWeapon().


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