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

Private Member Functions

void CAContinuousRepeatFishing (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 1 of file CAContinuousRepeatFishing.c.

Constructor & Destructor Documentation

◆ CAContinuousRepeatFishing()

void CAContinuousRepeatFishing::CAContinuousRepeatFishing ( float time_to_complete_action)
inlineprivate

Member Function Documentation

◆ Execute()

override int CAContinuousRepeatFishing::Execute ( ActionData action_data)
inlineprivate

Definition at line 8 of file CAContinuousRepeatFishing.c.

9 {
10 //Print("CAContinuousRepeatFishing | Execute");
11 if (!action_data.m_Player)
12 {
13 //Print("CAContinuousRepeatFishing | UA_ERROR");
14 return UA_ERROR;
15 }
16
18 {
19 m_TimeElpased += action_data.m_Player.GetDeltaT();
20 m_TotalTimeElpased += action_data.m_Player.GetDeltaT();
21 //Print("CAContinuousRepeatFishing | Execute | m_TimeElpased: " + m_TimeElpased);
22 return UA_PROCESSING;
23 }
24 else
25 {
30
32 if (fad && fad.m_FishingResult != -1)
33 {
34 //Print("CAContinuousRepeatFishing | UA_FINISHED");
35 return UA_FINISHED;
36 }
37 else
38 {
39 //Print("CAContinuousRepeatFishing | UA_PROCESSING");
40 return UA_PROCESSING;
41 }
42 }
43 }
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

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


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