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

This decision will return true if the character is grounded, false otherwise. More...

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

Public Member Functions

override void Initialization ()
 On init we grab our TopDownController component More...
 
override bool Decide ()
 On Decide we check if we're grounded More...
 
override void OnEnterState ()
 On Enter State we reset our start time More...
 
- Public Member Functions inherited from MoreMountains.Tools.AIDecision
virtual void OnExitState ()
 Meant to be overridden, called when the Brain exits a State this Decision is in More...
 

Public Attributes

float GroundedBufferDelay = 0.2f
 The duration, in seconds, after entering the state this Decision is in during which we'll ignore being grounded. 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 EvaluateGrounded ()
 Checks whether the character is grounded More...
 
- Protected Member Functions inherited from MoreMountains.Tools.AIDecision
virtual void Awake ()
 On Awake we grab our Brain More...
 

Protected Attributes

TopDownController _topDownController
 
float _startTime = 0f
 
- 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 if the character is grounded, false otherwise.

Member Function Documentation

◆ Decide()

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

On Decide we check if we're grounded

Returns

Implements MoreMountains.Tools.AIDecision.

◆ EvaluateGrounded()

virtual bool MoreMountains.TopDownEngine.AIDecisionGrounded.EvaluateGrounded ( )
protectedvirtual

Checks whether the character is grounded

Returns

◆ Initialization()

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

On init we grab our TopDownController component

Reimplemented from MoreMountains.Tools.AIDecision.

◆ OnEnterState()

override void MoreMountains.TopDownEngine.AIDecisionGrounded.OnEnterState ( )
virtual

On Enter State we reset our start time

Reimplemented from MoreMountains.Tools.AIDecision.

Member Data Documentation

◆ _startTime

float MoreMountains.TopDownEngine.AIDecisionGrounded._startTime = 0f
protected

◆ _topDownController

TopDownController MoreMountains.TopDownEngine.AIDecisionGrounded._topDownController
protected

◆ GroundedBufferDelay

float MoreMountains.TopDownEngine.AIDecisionGrounded.GroundedBufferDelay = 0.2f

The duration, in seconds, after entering the state this Decision is in during which we'll ignore being grounded.


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