Corgi Engine  v8.8
MoreMountains.CorgiEngine.AIDecisionGrounded Class Reference

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

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

Public Member Functions

override void Initialization ()
 On init we grab our CorgiController 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

CorgiController _controller
 
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.CorgiEngine.AIDecisionGrounded.Decide ( )
virtual

On Decide we check if we're grounded

Returns

Implements MoreMountains.Tools.AIDecision.

◆ EvaluateGrounded()

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

Checks whether the character is grounded

Returns

◆ Initialization()

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

On init we grab our CorgiController component

Reimplemented from MoreMountains.Tools.AIDecision.

◆ OnEnterState()

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

On Enter State we reset our start time

Reimplemented from MoreMountains.Tools.AIDecision.

Member Data Documentation

◆ _controller

CorgiController MoreMountains.CorgiEngine.AIDecisionGrounded._controller
protected

◆ _startTime

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

◆ GroundedBufferDelay

float MoreMountains.CorgiEngine.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: