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

Private Member Functions

void ActionTogglePlaceObject ()
 
override void CreateConditionComponents ()
 
override bool HasTarget ()
 
override bool IsLocal ()
 
override bool IsInstant ()
 
override bool IsDeploymentAction ()
 
override bool RemoveForceTargetAfterUse ()
 
override bool CanBeUsedWithBrokenLegs ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void Start (ActionData action_data)
 

Detailed Description

Definition at line 1 of file ActionTogglePlaceObject.c.

Constructor & Destructor Documentation

◆ ActionTogglePlaceObject()

void ActionTogglePlaceObject::ActionTogglePlaceObject ( )
inlineprivate

Definition at line 3 of file ActionTogglePlaceObject.c.

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

References m_Text.

Member Function Documentation

◆ ActionCondition()

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

Definition at line 44 of file ActionTogglePlaceObject.c.

45 {
46 // not placeable if liquid is present; exception for barrels, for now
47 if (!item.IsKindOf("Barrel_ColorBase") && item.IsLiquidPresent())
48 return false;
49
50 return true;
51 }

◆ CanBeUsedWithBrokenLegs()

override bool ActionTogglePlaceObject::CanBeUsedWithBrokenLegs ( )
inlineprivate

Definition at line 39 of file ActionTogglePlaceObject.c.

40 {
41 return false;
42 }

◆ CreateConditionComponents()

override void ActionTogglePlaceObject::CreateConditionComponents ( )
inlineprivate

Definition at line 8 of file ActionTogglePlaceObject.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.

◆ HasTarget()

override bool ActionTogglePlaceObject::HasTarget ( )
inlineprivate

Definition at line 14 of file ActionTogglePlaceObject.c.

15 {
16 return false;
17 }

◆ IsDeploymentAction()

override bool ActionTogglePlaceObject::IsDeploymentAction ( )
inlineprivate

Definition at line 29 of file ActionTogglePlaceObject.c.

30 {
31 return true;
32 }

◆ IsInstant()

override bool ActionTogglePlaceObject::IsInstant ( )
inlineprivate

Definition at line 24 of file ActionTogglePlaceObject.c.

25 {
26 return true;
27 }

◆ IsLocal()

override bool ActionTogglePlaceObject::IsLocal ( )
inlineprivate

Definition at line 19 of file ActionTogglePlaceObject.c.

20 {
21 return true;
22 }

◆ RemoveForceTargetAfterUse()

override bool ActionTogglePlaceObject::RemoveForceTargetAfterUse ( )
inlineprivate

Definition at line 34 of file ActionTogglePlaceObject.c.

35 {
36 return false;
37 }

◆ Start()

override void ActionTogglePlaceObject::Start ( ActionData action_data)
inlineprivate

Definition at line 53 of file ActionTogglePlaceObject.c.

54 {
55 super.Start(action_data);
56
57 action_data.m_Player.SetLocalProjectionPosition(action_data.m_Target.GetCursorHitPos());
58 action_data.m_Player.TogglePlacingLocal();
59 }

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