Loading...
Searching...
No Matches
SCR_WeaponDeployCondition Interface Reference
Inheritance diagram for SCR_WeaponDeployCondition:
SCR_AvailableActionCondition

Public Member Functions

override bool IsAvailable (notnull SCR_AvailableActionsConditionData data)
 Override and implement this method in any inherited conditions.
 
- Public Member Functions inherited from SCR_AvailableActionCondition
bool IsEnabled ()
 Getter for an enabled flag, disabled conditions are skipped, not evaluated at all.
 

Protected Attributes

bool m_bResultCache
 
int m_iCounter
 
- Protected Attributes inherited from SCR_AvailableActionCondition
bool m_bEnabled
 
bool m_bNegateCondition
 

Static Protected Attributes

const int SLEEP_COUNT = 3
 number of execution during which we want to use cached results to avoid checking CanDeployWeapon too often
 

Additional Inherited Members

- Protected Member Functions inherited from SCR_AvailableActionCondition
bool GetReturnResult (bool desiredResult)
 Based on the state of m_bNegateCondition returns our desired result.
 

Member Function Documentation

◆ IsAvailable()

override bool SCR_WeaponDeployCondition.IsAvailable ( notnull SCR_AvailableActionsConditionData data)

Override and implement this method in any inherited conditions.

Use GetReturnResult prior to returning the value to take m_bNegateCondition into account

Parameters
data
Returns
availability

Implements SCR_AvailableActionCondition.

Member Data Documentation

◆ m_bResultCache

bool SCR_WeaponDeployCondition.m_bResultCache
protected

◆ m_iCounter

int SCR_WeaponDeployCondition.m_iCounter
protected

◆ SLEEP_COUNT

const int SCR_WeaponDeployCondition.SLEEP_COUNT = 3
staticprotected

number of execution during which we want to use cached results to avoid checking CanDeployWeapon too often


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