TopDown Engine v4.5
Loading...
Searching...
No Matches
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.
override bool Decide ()
 On Decide we evaluate our time since the level has started.
Public Member Functions inherited from MoreMountains.Tools.AIDecision
bool Decide ()
 Decide will be performed every frame while the Brain is in a state this Decision is in. Should return true or false, which will then determine the transition's outcome.
virtual void OnEnterState ()
 Meant to be overridden, called when the Brain enters a State this Decision is in.
virtual void OnExitState ()
 Meant to be overridden, called when the Brain exits a State this Decision is in.

Public Attributes

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

Protected Member Functions

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

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 ( )

On Decide we evaluate our time since the level has started.

Returns

◆ 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: