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

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

void ActionForceFeed ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override string GetText ()
 

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

Методы

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate
84 {
85 if (!super.ActionCondition(player, target, item))
86 return false;
87
88 PlayerBase targetPlayer = PlayerBase.Cast(target.GetObject());
89
90 return targetPlayer && targetPlayer.CanEatAndDrink();
91 }
Definition EntityAI.c:95
Definition PlayerBaseClient.c:2

◆ ActionForceFeed()

void ActionForceFeed ( )
inlineprivate
70 {
71 m_CallbackClass = ActionForceFeedSmallCB;
72 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_FORCEFEED;
73 m_FullBody = true;
74 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH;
75 }
int m_CommandUID
Definition ActionBase.c:31
int m_StanceMask
Definition ActionBase.c:33
Definition ActionForceFeed.c:60
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

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

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
inlineprivate
78 {
79 m_ConditionTarget = new CCTMan(UAMaxDistances.DEFAULT);
80 m_ConditionItem = new CCINonRuined();
81 }
Definition CCINonRuined.c:2
Definition CCTMan.c:2
Definition ActionConstants.c:106
const float DEFAULT
Definition ActionConstants.c:108

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

◆ GetText()

override string GetText ( )
inlineprivate
95 {
96 return "#feed";
97 }

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