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

Protected Member Functions

void Init (ActionData action_data)
 
void Setup (ActionData action_data)
 
int Execute (ActionData action_data)
 
int Cancel (ActionData action_data)
 
int Interrupt (ActionData action_data)
 
void SetACData (Param units)
 
Param GetACData ()
 
bool IsContinuousAction ()
 
float GetProgress ()
 

Protected Attributes

ActionBase m_Action
 
float m_LastTick
 
ref Param m_ACData
 
ref Param2< float, floatm_ProgressParam
 

Detailed Description

Definition at line 1 of file CABase.c.

Member Function Documentation

◆ Cancel()

int CABase::Cancel ( ActionData action_data)
inlineprotected

Definition at line 27 of file CABase.c.

28 {
29 return UA_CANCEL;
30 }
const int UA_CANCEL
Definition constants.c:437

References UA_CANCEL.

◆ Execute()

int CABase::Execute ( ActionData action_data)
inlineprotected

Definition at line 22 of file CABase.c.

23 {
24 return UA_ERROR;
25 }
const int UA_ERROR
Definition constants.c:455

References UA_ERROR.

◆ GetACData()

Param CABase::GetACData ( )
inlineprotected

Definition at line 44 of file CABase.c.

45 {
46 if (m_ACData)
47 return m_ACData;
48 return NULL;
49 }
ref Param m_ACData
Definition CABase.c:5

References m_ACData.

◆ GetProgress()

float CABase::GetProgress ( )
inlineprotected

Definition at line 56 of file CABase.c.

57 {
58 return 0;
59 }

◆ Init()

void CABase::Init ( ActionData action_data)
inlineprotected

Definition at line 8 of file CABase.c.

9 {
11 m_Action = action_data.m_Action;
12 if (!m_ACData)
13 m_ACData = new Param;
14 m_LastTick = GetGame().GetTime();
16 }
void Setup(ActionData action_data)
Definition CABase.c:18
ActionBase m_Action
Definition CABase.c:3
float m_LastTick
Definition CABase.c:4
ref Param2< float, float > m_ProgressParam
Definition CABase.c:6
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Definition param.c:12
proto native CGame GetGame()

References GetGame(), m_ACData, m_Action, m_LastTick, m_ProgressParam, and Setup().

◆ Interrupt()

int CABase::Interrupt ( ActionData action_data)
inlineprotected

Definition at line 32 of file CABase.c.

33 {
35 return UA_INTERRUPT;
36 }
const int UA_INTERRUPT
Definition constants.c:438
proto native void Cancel()
cancels action

References Cancel(), and UA_INTERRUPT.

◆ IsContinuousAction()

bool CABase::IsContinuousAction ( )
inlineprotected

Definition at line 51 of file CABase.c.

52 {
53 return false;
54 }

◆ SetACData()

◆ Setup()

void CABase::Setup ( ActionData action_data)
inlineprotected

Definition at line 18 of file CABase.c.

19 {
20 }

Referenced by Init().

Member Data Documentation

◆ m_ACData

ref Param CABase::m_ACData
protected

Definition at line 5 of file CABase.c.

Referenced by GetACData(), Init(), and SetACData().

◆ m_Action

◆ m_LastTick

float CABase::m_LastTick
protected

Definition at line 4 of file CABase.c.

Referenced by Init().

◆ m_ProgressParam

ref Param2<float, float> CABase::m_ProgressParam
protected

Definition at line 6 of file CABase.c.

Referenced by Init().


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