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

Private Member Functions

void CAContinuousRepeatPushCar (float time_to_complete_action)
 
override int Execute (ActionData action_data)
 
- Private Member Functions inherited from CAContinuousRepeat
void CAContinuousRepeat (float time_to_complete_action)
 
override void Setup (ActionData action_data)
 
override int Execute (ActionData action_data)
 
override int Cancel (ActionData action_data)
 
override float GetProgress ()
 
void SetProgress (float value)
 

Additional Inherited Members

- Private Attributes inherited from CAContinuousRepeat
float m_TimeElpased
 
float m_TotalTimeElpased
 
float m_TimeToComplete
 
float m_DefaultTimeToComplete
 
ref Param1< floatm_SpentUnits
 

Detailed Description

Definition at line 20 of file ActionPushCar.c.

Constructor & Destructor Documentation

◆ CAContinuousRepeatPushCar()

void CAContinuousRepeatPushCar::CAContinuousRepeatPushCar ( float time_to_complete_action)
inlineprivate

Member Function Documentation

◆ Execute()

override int CAContinuousRepeatPushCar::Execute ( ActionData action_data)
inlineprivate

Definition at line 27 of file ActionPushCar.c.

28 {
29 if (!action_data.m_Player)
30 return UA_ERROR;
31
33 {
34 m_TimeElpased += action_data.m_Player.GetDeltaT();
35 m_TotalTimeElpased += action_data.m_Player.GetDeltaT();
36 return UA_PROCESSING;
37 }
38 else
39 {
44
45 return UA_CANCEL;
46 }
47
48 return UA_FINISHED;
49 }
void SetACData(Param units)
Definition CABase.c:38
void OnCompletePogress(ActionData action_data)
ref Param1< float > m_SpentUnits
const int UA_FINISHED
Definition constants.c:436
const int UA_ERROR
Definition constants.c:455
const int UA_PROCESSING
Definition constants.c:434
const int UA_CANCEL
Definition constants.c:437

References CAContinuousRepeat::m_SpentUnits, CAContinuousRepeat::m_TimeElpased, CAContinuousRepeat::m_TimeToComplete, CAContinuousRepeat::m_TotalTimeElpased, CAContinuousBase::OnCompletePogress(), CABase::SetACData(), UA_CANCEL, UA_ERROR, UA_FINISHED, and UA_PROCESSING.


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