DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс ActionWorldFlagActionSwitch

DEPRECATED. Подробнее...

+ Граф наследования: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
 

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

DEPRECATED.

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

◆ ActionWorldFlagActionSwitch()

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

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

Методы

◆ ActionCondition()

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

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

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
inlineprivate
21 {
24 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:64
ref CCTBase m_ConditionTarget
Definition ActionBase.c:65
Definition CCINone.c:2
Definition CCTCursor.c:2

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

◆ GetInputType()

override GetInputType ( )
inlineprivate
76 {
78 }
Definition ActionInput.c:535

◆ IsInstant()

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

◆ RemoveForceTargetAfterUse()

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

◆ SetFlagTendencyOnCurrentActionInvalid()

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

◆ Start()

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

Поля

◆ m_switch_to

bool m_switch_to
private

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


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