DayZ 1.24
Loading...
Searching...
No Matches
WeaponActionBase Class Reference

represents action executed on transition just between OnExit from old state and OnEntry to new state More...

Collaboration diagram for WeaponActionBase:
[legend]

Protected Member Functions

void WeaponActionDryFire (Weapon_Base w=NULL)
 
override void Action (WeaponEventBase e)
 
void WeaponActionDryDryFire (Weapon_Base w=NULL)
 
override void Action (WeaponEventBase e)
 

Protected Attributes

Weapon_Base m_weapon
 

Private Member Functions

void Action (WeaponEventBase e)
 

Detailed Description

represents action executed on transition just between OnExit from old state and OnEntry to new state

Definition at line 4 of file Actions.c.

Member Function Documentation

◆ Action() [1/3]

void WeaponActionBase::Action ( WeaponEventBase e)
inlineprivate

Definition at line 9 of file Actions.c.

9{ }

◆ Action() [2/3]

override void WeaponActionBase::Action ( WeaponEventBase e)
inlineprotected

Definition at line 19 of file Actions.c.

20 {
21 Print("[wpnfsm] " + Object.GetDebugName(m_weapon) + " action=dry fire");
22 int mi = m_weapon.GetCurrentMuzzle();
23 m_weapon.DryFire(mi);
24 }
Weapon_Base m_weapon
Definition Actions.c:16
proto void Print(void var)
Prints content of variable to console/log.

References m_weapon, and Print().

◆ Action() [3/3]

override void WeaponActionBase::Action ( WeaponEventBase e)
inlineprotected

Definition at line 31 of file Actions.c.

32 {
33 Print("[wpnfsm] " + Object.GetDebugName(m_weapon) + " action=dry dry fire");
34 int mi = m_weapon.GetCurrentMuzzle();
35 m_weapon.DryDryFire(mi);
36 }

References m_weapon, and Print().

◆ WeaponActionDryDryFire()

void WeaponActionBase::WeaponActionDryDryFire ( Weapon_Base w = NULL)
inlineprotected

Definition at line 29 of file Actions.c.

29{ m_weapon = w; }

References m_weapon.

◆ WeaponActionDryFire()

void WeaponActionBase::WeaponActionDryFire ( Weapon_Base w = NULL)
inlineprotected

Definition at line 17 of file Actions.c.

17{ m_weapon = w; }

References m_weapon.

Member Data Documentation

◆ m_weapon

Weapon_Base WeaponActionBase::m_weapon
protected

Definition at line 16 of file Actions.c.


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