|
Corgi Engine v9.4
|
Decisions are components that will be evaluated by transitions, every frame, and will return true or false. Examples include time spent in a state, distance to a target, or object detection within an area. More...
Public Member Functions | |
| 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 | Initialization () |
| Meant to be overridden, called when the game starts. | |
| 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 | |
| string | Label |
| a label you can set to organize your AI Decisions, not used by anything else | |
Protected Member Functions | |
| virtual void | Awake () |
| On Awake we grab our Brain. | |
Protected Attributes | |
| AIBrain | _brain |
Properties | |
| virtual bool | DecisionInProgress [get, set] |
Decisions are components that will be evaluated by transitions, every frame, and will return true or false. Examples include time spent in a state, distance to a target, or object detection within an area.
|
protectedvirtual |
On Awake we grab our Brain.
|
abstract |
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 |
Meant to be overridden, called when the game starts.
Reimplemented in MoreMountains.CorgiEngine.AIDecisionDetectTargetLine, MoreMountains.CorgiEngine.AIDecisionDetectTargetRadius, MoreMountains.CorgiEngine.AIDecisionGrounded, MoreMountains.CorgiEngine.AIDecisionHealth, MoreMountains.CorgiEngine.AIDecisionHit, MoreMountains.CorgiEngine.AIDecisionLineOfSightToTarget, MoreMountains.CorgiEngine.AIDecisionReloadNeeded, MoreMountains.CorgiEngine.AIDecisionTimeInState, and MoreMountains.CorgiEngine.AIDecisionTimeSinceStart.
|
virtual |
Meant to be overridden, called when the Brain enters a State this Decision is in.
Reimplemented in MoreMountains.CorgiEngine.AIDecisionGrounded, MoreMountains.CorgiEngine.AIDecisionHit, and MoreMountains.CorgiEngine.AIDecisionTimeInState.
|
virtual |
Meant to be overridden, called when the Brain exits a State this Decision is in.
Reimplemented in MoreMountains.CorgiEngine.AIDecisionHit.
|
protected |
| string MoreMountains.Tools.AIDecision.Label |
a label you can set to organize your AI Decisions, not used by anything else
|
getset |