UFO: Alien Invasion
Loading...
Searching...
No Matches
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.

References _fmIdx, _hand, _weapon, ACTOR_HAND_NOT_SET, and nullptr.

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 FiremodeSettings(), 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 FiremodeSettings(), getHand(), isSaneFiremode(), set(), and setHand().

◆ _weapon

const objDef_t* FiremodeSettings::_weapon
private

Definition at line 148 of file chr_shared.h.

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


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