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

Private Member Functions

void CAContinuousMineRock (float time_between_drops)
 
override bool GetMiningData (ActionData action_data)
 
- Private Member Functions inherited from CAContinuousMineWood
void CAContinuousMineWood (float time_between_drops)
 
override void Setup (ActionData action_data)
 
override int Execute (ActionData action_data)
 
override float GetProgress ()
 
bool GetMiningData (ActionData action_data)
 
void CreatePrimaryItems (ActionData action_data)
 
void CreateSecondaryItems (ActionData action_data, string material_secondary="", int quantity_secondary=-1)
 
void DamagePlayersHands (PlayerBase player)
 

Additional Inherited Members

- Private Attributes inherited from CAContinuousMineWood
float m_TimeElpased
 
float m_AdjustedTimeBetweenMaterialDrops
 
float m_CycleTimeOverride
 
float m_TimeBetweenMaterialDrops
 
float m_DamageToMiningItemEachDrop
 
float m_AdjustedDamageToMiningItemEachDrop
 
int m_AmountOfDrops
 
int m_CurrentAssumedDrops
 
ref map< string, intm_MaterialAndQuantityMap
 
float m_TimeToComplete
 
ref Param1< floatm_SpentUnits
 
bool m_DataLoaded = false
 
const int MINEDITEM_MAX = 5
 
ItemBase m_MinedItem [MINEDITEM_MAX]
 
ItemBase m_SecondaryItem
 

Detailed Description

Definition at line 1 of file CAContinuousMineRock.c.

Constructor & Destructor Documentation

◆ CAContinuousMineRock()

void CAContinuousMineRock::CAContinuousMineRock ( float time_between_drops)
inlineprivate

Member Function Documentation

◆ GetMiningData()

override bool CAContinuousMineRock::GetMiningData ( ActionData action_data)
inlineprivate

Definition at line 8 of file CAContinuousMineRock.c.

9 {
11 if (Class.CastTo(ntarget, action_data.m_Target.GetObject()))
12 {
13 m_AmountOfDrops = ntarget.GetAmountOfDrops(action_data.m_MainItem);
14 ntarget.GetMaterialAndQuantityMap(action_data.m_MainItem, m_MaterialAndQuantityMap);
15 m_DamageToMiningItemEachDrop = ntarget.GetDamageToMiningItemEachDrop(action_data.m_MainItem);
16 m_AdjustedDamageToMiningItemEachDrop = action_data.m_Player.GetSoftSkillsManager().SubtractSpecialtyBonus(m_DamageToMiningItemEachDrop, m_Action.GetSpecialtyWeight(), true);
17 return true;
18 }
19 return false;
20 }
ActionBase m_Action
Definition CABase.c:3
ref map< string, int > m_MaterialAndQuantityMap
Super root of all classes in Enforce script.
Definition EnScript.c:11
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

References Class::CastTo(), CABase::m_Action, CAContinuousMineWood::m_AdjustedDamageToMiningItemEachDrop, CAContinuousMineWood::m_AmountOfDrops, CAContinuousMineWood::m_DamageToMiningItemEachDrop, and CAContinuousMineWood::m_MaterialAndQuantityMap.


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