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

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

void ActionStopEngineBoat ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnExecute (ActionData action_data)
 
override bool CanBeUsedInVehicle ()
 
override bool UseMainItem ()
 

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

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

◆ ActionStopEngineBoat()

void ActionStopEngineBoat ( )
inlineprivate
4 {
5 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_STOPENGINE;
6 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
7 m_Text = "#stop_engine";
8 }
string m_Text
Definition ActionBase.c:58
int m_StanceMask
Definition ActionBase.c:62
int m_CommandUID
Definition AnimatedActionBase.c:143
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

Перекрестные ссылки AnimatedActionBase::m_CommandUID, ActionBase::m_StanceMask и ActionBase::m_Text.

Методы

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate
17 {
18 HumanCommandVehicle vehCmd = player.GetCommand_Vehicle();
19 if (vehCmd && vehCmd.GetVehicleSeat() == DayZPlayerConstants.VEHICLESEAT_DRIVER)
20 {
21 Transport trans = vehCmd.GetTransport();
22 if (!trans)
23 return false;
24
25 Boat boat = Boat.Cast(trans);
26 if (boat && boat.EngineIsOn())
27 return true;
28 }
29
30 return false;
31 }
Definition human.c:690
Definition EntityAI.c:95
Base native class for all motorized wheeled vehicles.
Definition Boat.c:28

◆ CanBeUsedInVehicle()

override bool CanBeUsedInVehicle ( )
inlineprivate
46 {
47 return true;
48 }

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
inlineprivate
11 {
14 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:64
ref CCTBase m_ConditionTarget
Definition ActionBase.c:65
Definition CCINone.c:2
Definition CCTNone.c:2

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

◆ OnExecute()

override void OnExecute ( ActionData action_data)
inlineprivate
34 {
35 HumanCommandVehicle vehCmd = action_data.m_Player.GetCommand_Vehicle();
36 if (!vehCmd)
37 return;
38
39 Boat boat = Boat.Cast(vehCmd.GetTransport());
40 if (boat)
41 boat.EngineStop();
42
43 }

◆ UseMainItem()

override bool UseMainItem ( )
inlineprivate
51 {
52 return false;
53 }

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