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

Private Member Functions

void ActionSingleUseBase ()
 
override GetInputType ()
 
override int GetActionCategory ()
 
void ActionPin ()
 
override void CreateConditionComponents ()
 
override bool HasTarget ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnExecute (ActionData action_data)
 
void ActionUnpin ()
 
override void CreateConditionComponents ()
 
override bool HasTarget ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnExecute (ActionData action_data)
 
- Private Member Functions inherited from AnimatedActionBase
void AnimatedActionBase ()
 
void OnAlternativeEndServer (PlayerBase player)
 
void OnAlternativeEndClient (PlayerBase player)
 
void OnInterruptServer (PlayerBase player)
 
void OnInterruptClient (PlayerBase player)
 
void OnExecute (ActionData action_data)
 
void OnExecuteServer (ActionData action_data)
 
void OnExecuteClient (ActionData action_data)
 
void OnAnimationEvent (ActionData action_data)
 
override bool ActionConditionContinue (ActionData action_data)
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
int GetActionCommand (PlayerBase player)
 
 GetCallbackClassTypename ()
 
override bool HasProneException ()
 
void CreateAndSetupActionCallback (ActionData action_data)
 
override void Start (ActionData action_data)
 
override void Interrupt (ActionData action_data)
 
void OnJumpStart ()
 
void Do (ActionData action_data, int state)
 
override void End (ActionData action_data)
 
override float GetProgress (ActionData action_data)
 

Additional Inherited Members

- Private Attributes inherited from AnimatedActionBase
int m_CommandUID
 
int m_CommandUIDProne
 
 m_CallbackClass
 

Detailed Description

Definition at line 39 of file ActionSingleUseBase.c.

Constructor & Destructor Documentation

◆ ActionSingleUseBase()

void ActionSingleUseBase::ActionSingleUseBase ( )
inlineprivate

Member Function Documentation

◆ ActionCondition() [1/2]

override bool ActionSingleUseBase::ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate

Definition at line 19 of file ActionPin.c.

20 {
21 /*
22 if ( item.IsInherited(Grenade_Base) )
23 {
24 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_PINGRENAGE;
25 }
26 else
27 */
28 {
29 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_ITEM_ON;
30 }
31
33 if (grenade)
34 {
35 if (!grenade.IsPinned() && grenade.IsPinnable())
36 return true;
37 }
38
39 return false;
40 }

◆ ActionCondition() [2/2]

override bool ActionSingleUseBase::ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate

Definition at line 19 of file ActionUnpin.c.

20 {
21 if (item.IsInherited(Grenade_Base))
22 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_UNPINGRENAGE;
23 else
24 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_ITEM_ON;
25
27 if (grenade)
28 {
29 if (grenade.IsPinned())
30 return true;
31 }
32
33 return false;
34 }

◆ ActionPin()

void ActionSingleUseBase::ActionPin ( )
inlineprivate

Definition at line 3 of file ActionPin.c.

4 {
5 m_Text = "#pin";
6 }
string m_Text
Definition ActionBase.c:49

References m_Text.

◆ ActionUnpin()

void ActionSingleUseBase::ActionUnpin ( )
inlineprivate

Definition at line 3 of file ActionUnpin.c.

4 {
5 m_Text = "#unpin";
6 }

References m_Text.

◆ CreateConditionComponents() [1/2]

override void ActionSingleUseBase::CreateConditionComponents ( )
inlineprivate

Definition at line 8 of file ActionPin.c.

9 {
12 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56

References m_ConditionItem, and m_ConditionTarget.

◆ CreateConditionComponents() [2/2]

override void ActionSingleUseBase::CreateConditionComponents ( )
inlineprivate

Definition at line 8 of file ActionUnpin.c.

9 {
12 }

References m_ConditionItem, and m_ConditionTarget.

◆ GetActionCategory()

override int ActionSingleUseBase::GetActionCategory ( )
inlineprivate

Definition at line 52 of file ActionSingleUseBase.c.

53 {
54 return AC_SINGLE_USE;
55 }
const int AC_SINGLE_USE
Definition _constants.c:2

References AC_SINGLE_USE.

◆ GetInputType()

override ActionSingleUseBase::GetInputType ( )
inlineprivate

Definition at line 47 of file ActionSingleUseBase.c.

◆ HasTarget() [1/2]

override bool ActionSingleUseBase::HasTarget ( )
inlineprivate

Definition at line 14 of file ActionPin.c.

15 {
16 return false;
17 }

◆ HasTarget() [2/2]

override bool ActionSingleUseBase::HasTarget ( )
inlineprivate

Definition at line 14 of file ActionUnpin.c.

15 {
16 return false;
17 }

◆ OnExecute() [1/2]

override void ActionSingleUseBase::OnExecute ( ActionData action_data)
inlineprivate

Definition at line 42 of file ActionPin.c.

43 {
45 if (grenade)
46 grenade.Pin();
47 }

◆ OnExecute() [2/2]

override void ActionSingleUseBase::OnExecute ( ActionData action_data)
inlineprivate

Definition at line 36 of file ActionUnpin.c.

37 {
39 if (grenade)
40 grenade.Unpin();
41 }

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