PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
CAContinuousQuantityRepeat Class Reference

Private Member Functions

void CAContinuousQuantityRepeat (float quantity_used_per_second, float time_to_repeat)
 
override void Setup (ActionData action_data)
 
override int Execute (ActionData action_data)
 
override int Cancel (ActionData action_data)
 
override float GetProgress ()
 
void CalcAndSetQuantity (ActionData action_data)
 

Private Attributes

protected float m_ItemQuantity
 
protected float m_SpentQuantity
 
protected float m_ItemMaxQuantity
 
protected float m_TimeElpased
 
protected float m_QuantityUsedPerSecond
 
protected float m_AdjustedQuantityUsedPerSecond
 
protected float m_DefaultTimeToRepeat
 
protected ref Param1< floatm_SpentUnits
 

Constructor & Destructor Documentation

◆ CAContinuousQuantityRepeat()

void CAContinuousQuantityRepeat ( float  quantity_used_per_second,
float  time_to_repeat 
)
inlineprivate

Member Function Documentation

◆ CalcAndSetQuantity()

void CalcAndSetQuantity ( ActionData  action_data)
inlineprivate

◆ Cancel()

override int Cancel ( ActionData  action_data)
inlineprivate

References UA_CANCEL, and UA_ERROR.

◆ Execute()

◆ GetProgress()

override float GetProgress ( )
inlineprivate

◆ Setup()

override void Setup ( ActionData  action_data)
inlineprivate

Field Documentation

◆ m_AdjustedQuantityUsedPerSecond

protected float m_AdjustedQuantityUsedPerSecond
private

◆ m_DefaultTimeToRepeat

◆ m_ItemMaxQuantity

protected float m_ItemMaxQuantity
private

Referenced by GetProgress(), and Setup().

◆ m_ItemQuantity

protected float m_ItemQuantity
private

Referenced by Execute(), GetProgress(), and Setup().

◆ m_QuantityUsedPerSecond

◆ m_SpentQuantity

◆ m_SpentUnits

◆ m_TimeElpased


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