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

Защищенные члены

void ActionFillObject ()
 
override void CreateConditionComponents ()
 
override void OnActionInfoUpdate (PlayerBase player, ActionTarget target, ItemBase item)
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnFinishProgressServer (ActionData action_data)
 
override void OnFinishProgressClient (ActionData action_data)
 

Защищенные данные

int m_ActionState
 
const int EMPTY = 0
 
const int FILLED = 1
 

Дополнительные унаследованные члены

- Закрытые члены унаследованные от ActionContinuousBase
void OnStartAnimationLoopServer (ActionData action_data)
 
void OnStartAnimationLoopClient (ActionData action_data)
 
void OnEndAnimationLoopServer (ActionData action_data)
 
void OnEndAnimationLoopClient (ActionData action_data)
 
void OnFinishProgressServer (ActionData action_data)
 
void OnFinishProgressClient (ActionData action_data)
 

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

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

◆ ActionFillObject()

void ActionFillObject ( )
inlineprotected
17 {
19 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_DIG;
20 m_FullBody = true;
21 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT;
23 }
bool m_FullBody
Definition ActionBase.c:52
float m_SpecialtyWeight
Definition ActionBase.c:68
int m_StanceMask
Definition ActionBase.c:53
Definition ActionFillObject.c:2
int m_CommandUID
Definition AnimatedActionBase.c:135
m_CallbackClass
Definition AnimatedActionBase.c:137
Definition ActionConstants.c:119
const float ROUGH_LOW
Definition ActionConstants.c:120
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

Перекрестные ссылки AnimatedActionBase::m_CallbackClass, AnimatedActionBase::m_CommandUID, m_FullBody, m_SpecialtyWeight, m_StanceMask и UASoftSkillsWeight::ROUGH_LOW.

Методы

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprotected
47 {
48 if ( player.IsPlacingLocal() )
49 return false;
50
51 HescoBox hesco;
52 if ( Class.CastTo(hesco,target.GetObject()) )
53 {
54 if ( hesco.CanBeFilledAtPosition( player.GetPosition() ) )
55 {
56 if ( hesco.GetState() == HescoBox.UNFOLDED )
57 {
59 return true;
60 }
61 else if( hesco.GetState() == HescoBox.FILLED)
62 {
64 return true;
65 }
66 }
67 }
68
69 return false;
70 }
int m_ActionState
Definition ActionFillObject.c:11
const int FILLED
Definition ActionFillObject.c:14
const int EMPTY
Definition ActionFillObject.c:13
Super root of all classes in Enforce script.
Definition EnScript.c:11
Definition EntityAI.c:95
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

Перекрестные ссылки Class::CastTo(), EMPTY, FILLED и m_ActionState.

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
inlineprotected
26 {
27
30 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
Definition CCINonRuined.c:2
Definition CCTNonRuined.c:2
Definition ActionConstants.c:105
const float DEFAULT
Definition ActionConstants.c:107

Перекрестные ссылки UAMaxDistances::DEFAULT, m_ConditionItem и m_ConditionTarget.

◆ OnActionInfoUpdate()

override void OnActionInfoUpdate ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprotected
33 {
34 HescoBox hesco = HescoBox.Cast(target.GetObject());
35
36 if( hesco.GetState() == HescoBox.UNFOLDED )
37 {
38 m_Text = "#empty";
39 }
40 else
41 {
42 m_Text = "#fill";
43 }
44 }
string m_Text
Definition ActionBase.c:49

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

◆ OnFinishProgressClient()

override void OnFinishProgressClient ( ActionData action_data)
inlineprotected
95 {
96 HescoBox hesco;
97
98 if ( Class.CastTo(hesco,action_data.m_Target.GetObject()) )
99 {
100 if ( hesco.GetState() == HescoBox.UNFOLDED )
101 {
102 hesco.Fill();
103 }
104 else if ( hesco.GetState() == HescoBox.FILLED )
105 {
106 hesco.Unfold();
107 }
108 }
109 }

Перекрестные ссылки Class::CastTo().

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)
inlineprotected
73 {
74 HescoBox hesco;
75
76 if ( Class.CastTo(hesco,action_data.m_Target.GetObject()) )
77 {
78 const float ITEM_DAMAGE = 0.05;
79 action_data.m_MainItem.DecreaseHealth ( "", "", action_data.m_Player.GetSoftSkillsManager().SubtractSpecialtyBonus( ITEM_DAMAGE, this.GetSpecialtyWeight() )*100 );
80
81 if ( hesco.GetState() == HescoBox.UNFOLDED )
82 {
83 hesco.Fill();
84 }
85 else if ( hesco.GetState() == HescoBox.FILLED )
86 {
87 hesco.Unfold();
88 }
89 }
90
91 action_data.m_Player.GetSoftSkillsManager().AddSpecialty( m_SpecialtyWeight );
92 }

Перекрестные ссылки Class::CastTo() и m_SpecialtyWeight.

Поля

◆ EMPTY

const int EMPTY = 0
protected

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

◆ FILLED

const int FILLED = 1
protected

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

◆ m_ActionState

int m_ActionState
protected

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


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