Dayz 1.25
Dayz Code Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс ActionWorldFlagActionSwitch
+ Граф наследования:ActionWorldFlagActionSwitch:

Закрытые члены

void ActionWorldFlagActionSwitch ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void Start (ActionData action_data)
 
override bool IsInstant ()
 
override bool RemoveForceTargetAfterUse ()
 
override GetInputType ()
 
void SetFlagTendencyOnCurrentActionInvalid (bool state)
 

Закрытые данные

bool m_switch_to
 

Подробное описание

Конструктор(ы)

◆ ActionWorldFlagActionSwitch()

void ActionWorldFlagActionSwitch ( )
inlineprivate
15 {
16 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH;
17 }
int m_StanceMask
Definition ActionBase.c:53
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

Перекрестные ссылки m_StanceMask.

Методы

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate
33 {
34 TerritoryFlag totem = TerritoryFlag.Cast( target.GetObject() );
35 if (!totem)
36 return false;
37
38 float state = totem.GetAnimationPhase("flag_mast");
39
40 if ( totem && totem.FindAttachmentBySlotName("Material_FPole_Flag") )
41 {
42 if ( player.GetFlagTendencyRaise() && state < 1 )
43 {
44 m_switch_to = true;
45 return true;
46 }
47 else if ( !player.GetFlagTendencyRaise() && state > 0 )
48 {
49 m_switch_to = false;
50 return true;
51 }
52 }
53 return false;
54 }
bool m_switch_to
Definition ActionWorldFlagActionSwitch.c:13
Definition EntityAI.c:95

Перекрестные ссылки m_switch_to.

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
inlineprivate
20 {
23 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
Definition CCINone.c:2
Definition CCTCursor.c:2

Перекрестные ссылки m_ConditionItem и m_ConditionTarget.

◆ GetInputType()

override GetInputType ( )
inlineprivate
75 {
77 }
Definition ActionInput.c:535

◆ IsInstant()

override bool IsInstant ( )
inlineprivate
65 {
66 return true;
67 }

◆ RemoveForceTargetAfterUse()

override bool RemoveForceTargetAfterUse ( )
inlineprivate
70 {
71 return false;
72 }

◆ SetFlagTendencyOnCurrentActionInvalid()

void SetFlagTendencyOnCurrentActionInvalid ( bool state)
inlineprivate
80 {
81
82 }

◆ Start()

override void Start ( ActionData action_data)
inlineprivate
57 {
58 super.Start( action_data );
59
60 bool state = action_data.m_Player.GetFlagTendencyRaise();
61 action_data.m_Player.SetFlagTendencyRaise(!state);
62 }

Поля

◆ m_switch_to

bool m_switch_to
private

Используется в ActionCondition().


Объявления и описания членов класса находятся в файле: