DayZ 1.24
Loading...
Searching...
No Matches
ActionIgniteFireplaceByAir Class Reference
Inheritance diagram for ActionIgniteFireplaceByAir:
[legend]
Collaboration diagram for ActionIgniteFireplaceByAir:
[legend]

Private Member Functions

void ActionIgniteFireplaceByAir ()
 
override void CreateConditionComponents ()
 
override GetInputType ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnFinishProgressServer (ActionData action_data)
 
bool SkipKindlingCheck ()
 
- Private Member Functions inherited from 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)
 

Detailed Description

Definition at line 9 of file ActionIgniteFireplaceByAir.c.

Constructor & Destructor Documentation

◆ ActionIgniteFireplaceByAir()

void ActionIgniteFireplaceByAir::ActionIgniteFireplaceByAir ( )
inlineprivate

Member Function Documentation

◆ ActionCondition()

override bool ActionIgniteFireplaceByAir::ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate

Definition at line 32 of file ActionIgniteFireplaceByAir.c.

33 {
34 Object target_object = target.GetObject();
36
37 if (target_object && target_object.IsFireplace())
38 {
39 if (fireplace_target.IsBaseFireplace() || fireplace_target.IsFireplaceIndoor())
40 {
41 if (!fireplace_target.IsBurning() && fireplace_target.GetTemperature() >= fireplace_target.PARAM_MIN_TEMP_TO_REIGNITE)
42 return true;
43 }
44 }
45
46 return false;
47 }

◆ CreateConditionComponents()

override void ActionIgniteFireplaceByAir::CreateConditionComponents ( )
inlineprivate

◆ GetInputType()

override ActionIgniteFireplaceByAir::GetInputType ( )
inlineprivate

◆ OnFinishProgressServer()

override void ActionIgniteFireplaceByAir::OnFinishProgressServer ( ActionData action_data)
inlineprivate

Definition at line 49 of file ActionIgniteFireplaceByAir.c.

50 {
51 FireplaceBase fireplace_target = FireplaceBase.Cast(action_data.m_Target.GetObject());
52
53 //start fire
54 fireplace_target.StartFire();
55
56 action_data.m_Player.GetSoftSkillsManager().AddSpecialty(m_SpecialtyWeight);
57 }

References m_SpecialtyWeight.

◆ SkipKindlingCheck()

bool ActionIgniteFireplaceByAir::SkipKindlingCheck ( )
inlineprivate

Definition at line 59 of file ActionIgniteFireplaceByAir.c.

60 {
61 return false;
62 }

The documentation for this class was generated from the following file: