Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
actionsequentialbase.c
Go to the documentation of this file.
2 {
3  int m_Stage;
4  void MultiStageBaseActionData()
5  {
6  m_Stage = 0;
7  }
8 }
9 
10 class ActionSequentialBase : ActionBase
11 {
13  {
14  }
15 
17  {
18  ActionData action_data = new SequentialActionData;
19  return action_data;
20  }
21 
22  override int GetStanceMask(PlayerBase player)
23  {
24  return DayZPlayerConstants.STANCEMASK_ALL;
25  }
26 
27  override int GetActionCategory()
28  {
29  return AC_SINGLE_USE;
30  }
31 
32  override typename GetInputType()
33  {
34  return DefaultActionInput;
35  }
36 
38  {
39  return true;
40  }
41 
42  override bool CanBeUsedOnBack()
43  {
44  return true;
45  }
46 
47  override bool CanBeUsedRaised()
48  {
49  return true;
50  }
51 
52  override void Start( ActionData action_data )
53  {
54  super.Start( action_data );
55 
56  SequentialActionData ad = SequentialActionData.Cast( action_data );
57  OnStageStart( ad );
58  }
59 
60  void SetStage(int stage, SequentialActionData action_data)
61  {
62  OnStageEnd(action_data);
63  action_data.m_Stage = stage;
64  OnStageStart(action_data);
65  }
66 
68  {
69  }
70 
71  void OnStageEnd(SequentialActionData action_data)
72  {
73  }
74 
75  override float GetProgress( ActionData action_data )
76  {
77  return -1;
78  }
79 };
OnStageEnd
void OnStageEnd(SequentialActionData action_data)
Definition: actionsequentialbase.c:71
CanBeUsedOnBack
override bool CanBeUsedOnBack()
Definition: actionsequentialbase.c:42
GetProgress
override float GetProgress(ActionData action_data)
Definition: actionsequentialbase.c:75
Start
override void Start(ActionData action_data)
Definition: actionsequentialbase.c:52
GetStanceMask
override int GetStanceMask(PlayerBase player)
Definition: actionsequentialbase.c:22
OnStageStart
void OnStageStart(SequentialActionData action_data)
Definition: actionsequentialbase.c:67
ActionMultiStageBase
SequentialActionData ActionData ActionMultiStageBase()
Definition: actionsequentialbase.c:12
DefaultActionInput
Definition: actioninput.c:630
CanBeUsedRaised
override bool CanBeUsedRaised()
Definition: actionsequentialbase.c:47
CreateActionData
override ActionData CreateActionData()
Definition: actionsequentialbase.c:16
PlayerBase
Definition: playerbaseclient.c:1
ActionData
Definition: actionbase.c:20
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition: dayzplayer.c:601
SetStage
void SetStage(int stage, SequentialActionData action_data)
Definition: actionsequentialbase.c:60
SequentialActionData
Definition: actionsequentialbase.c:1
GetActionCategory
override int GetActionCategory()
Definition: actionsequentialbase.c:27
AC_SINGLE_USE
const int AC_SINGLE_USE
Definition: _constants.c:2
ActionBase
void ActionBase()
Definition: actionbase.c:73
m_Stage
int m_Stage
Definition: actionsequentialbase.c:2
GetInputType
override GetInputType()
Definition: actionsequentialbase.c:32
CanBePerformedFromInventory
override bool CanBePerformedFromInventory()
Definition: actionsequentialbase.c:37