TopDown Engine  v3.6
MoreMountains.TopDownEngine.AIDecisionTimeSinceStart Class Reference

This decision will return true after the specified duration (in seconds) has passed since the level was loaded. More...

Inheritance diagram for MoreMountains.TopDownEngine.AIDecisionTimeSinceStart:
MoreMountains.Tools.AIDecision

Public Member Functions

override void Initialization ()
 On init we store our current time More...
 
override bool Decide ()
 On Decide we evaluate our time since the level has started More...
 
- Public Member Functions inherited from MoreMountains.Tools.AIDecision
virtual void OnEnterState ()
 Meant to be overridden, called when the Brain enters a State this Decision is in More...
 
virtual void OnExitState ()
 Meant to be overridden, called when the Brain exits a State this Decision is in More...
 

Public Attributes

float AfterTime
 The duration (in seconds) after which to return true. More...
 
- Public Attributes inherited from MoreMountains.Tools.AIDecision
string Label
 a label you can set to organize your AI Decisions, not used by anything else More...
 

Protected Member Functions

virtual bool EvaluateTime ()
 Returns true if the time since the level has started has exceeded our requirements More...
 
- Protected Member Functions inherited from MoreMountains.Tools.AIDecision
virtual void Awake ()
 On Awake we grab our Brain More...
 

Protected Attributes

float _startTime
 
- Protected Attributes inherited from MoreMountains.Tools.AIDecision
AIBrain _brain
 

Additional Inherited Members

- Properties inherited from MoreMountains.Tools.AIDecision
virtual bool DecisionInProgress [get, set]
 

Detailed Description

This decision will return true after the specified duration (in seconds) has passed since the level was loaded.

Member Function Documentation

◆ Decide()

override bool MoreMountains.TopDownEngine.AIDecisionTimeSinceStart.Decide ( )
virtual

On Decide we evaluate our time since the level has started

Returns

Implements MoreMountains.Tools.AIDecision.

◆ EvaluateTime()

virtual bool MoreMountains.TopDownEngine.AIDecisionTimeSinceStart.EvaluateTime ( )
protectedvirtual

Returns true if the time since the level has started has exceeded our requirements

Returns

◆ Initialization()

override void MoreMountains.TopDownEngine.AIDecisionTimeSinceStart.Initialization ( )
virtual

On init we store our current time

Reimplemented from MoreMountains.Tools.AIDecision.

Member Data Documentation

◆ _startTime

float MoreMountains.TopDownEngine.AIDecisionTimeSinceStart._startTime
protected

◆ AfterTime

float MoreMountains.TopDownEngine.AIDecisionTimeSinceStart.AfterTime

The duration (in seconds) after which to return true.


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