DayZ 1.24
Loading...
Searching...
No Matches
ActionSawPlanksCB Class Reference
Inheritance diagram for ActionSawPlanksCB:
[legend]
Collaboration diagram for ActionSawPlanksCB:
[legend]

Private Member Functions

override void CreateActionComponent ()
 
float GetDefaultTime ()
 

Static Private Attributes

static const float TIME_SAW_HANDSAW = 1.5
 
static const float TIME_SAW_HACKSAW = 3.0
 
static const float TIME_AXES = 1.2
 

Detailed Description

Definition at line 1 of file ActionSawPlanks.c.

Member Function Documentation

◆ CreateActionComponent()

override void ActionSawPlanksCB::CreateActionComponent ( )
inlineprivate

◆ GetDefaultTime()

float ActionSawPlanksCB::GetDefaultTime ( )
inlineprivate

Definition at line 12 of file ActionSawPlanks.c.

13 {
14 string item_type = m_ActionData.m_MainItem.GetType();
15
16 switch (item_type)
17 {
18 case "Hacksaw":
19 return TIME_SAW_HACKSAW;
20 break;
21
22 case "HandSaw":
23 return TIME_SAW_HANDSAW;
24 break;
25
26 default: // axes
27 return TIME_AXES;
28 break
29 }
30 Print("ActionSawPlanksCB | Item detection error, assigning negative time");
31 return -1;
32 }
ItemBase m_MainItem
Definition ActionBase.c:28
static const float TIME_AXES
static const float TIME_SAW_HANDSAW
static const float TIME_SAW_HACKSAW
proto void Print(void var)
Prints content of variable to console/log.

References ActionBaseCB::m_ActionData, ActionData::m_MainItem, Print(), TIME_AXES, TIME_SAW_HACKSAW, and TIME_SAW_HANDSAW.

Referenced by CreateActionComponent().

Member Data Documentation

◆ TIME_AXES

const float ActionSawPlanksCB::TIME_AXES = 1.2
staticprivate

Definition at line 5 of file ActionSawPlanks.c.

Referenced by GetDefaultTime().

◆ TIME_SAW_HACKSAW

const float ActionSawPlanksCB::TIME_SAW_HACKSAW = 3.0
staticprivate

Definition at line 4 of file ActionSawPlanks.c.

Referenced by GetDefaultTime().

◆ TIME_SAW_HANDSAW

const float ActionSawPlanksCB::TIME_SAW_HANDSAW = 1.5
staticprivate

Definition at line 3 of file ActionSawPlanks.c.

Referenced by GetDefaultTime().


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