TopDown Engine
v4.2
|
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 | |
abstract 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. More... | |
virtual void | Initialization () |
Meant to be overridden, called when the game starts More... | |
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 | |
string | Label |
a label you can set to organize your AI Decisions, not used by anything else More... | |
Protected Member Functions | |
virtual void | Awake () |
On Awake we grab our Brain More... | |
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
|
pure virtual |
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.
Implemented in MoreMountains.TopDownEngine.AIDecisionDetectTargetRadius2D, MoreMountains.TopDownEngine.AIDecisionDetectTargetLine2D, MoreMountains.TopDownEngine.AIDecisionDetectTargetLine3D, MoreMountains.TopDownEngine.AIDecisionDetectTargetRadius3D, MoreMountains.TopDownEngine.AIDecisionHealth, MoreMountains.TopDownEngine.AIDecisionHit, MoreMountains.TopDownEngine.AIDecisionDetectTargetConeOfVision2D, MoreMountains.TopDownEngine.AIDecisionLineOfSightToTarget2D, MoreMountains.TopDownEngine.AIDecisionLineOfSightToTarget3D, MoreMountains.TopDownEngine.AIDecisionDetectTargetConeOfVision3D, MoreMountains.TopDownEngine.AIDecisionGrounded, MoreMountains.TopDownEngine.AIDecisionTimeSinceStart, MoreMountains.TopDownEngine.AIDecisionReloadNeeded, MoreMountains.TopDownEngine.AIDecisionRandom, MoreMountains.TopDownEngine.AIDecisionConditionState, MoreMountains.TopDownEngine.AIDecisionDistanceToTarget, MoreMountains.TopDownEngine.AIDecisionPathfinderPathToTargetExists, MoreMountains.TopDownEngine.AIDecisionTimeInState, MoreMountains.TopDownEngine.AIDecisionMMPathEndReached, MoreMountains.TopDownEngine.AIDecisionTargetFacingAI2D, MoreMountains.TopDownEngine.AIDecisionTargetIsAlive, MoreMountains.TopDownEngine.AIDecisionNextFrame, and MoreMountains.TopDownEngine.AIDecisionTargetIsNull.
|
virtual |
Meant to be overridden, called when the game starts
Reimplemented in MoreMountains.TopDownEngine.AIDecisionDetectTargetRadius2D, MoreMountains.TopDownEngine.AIDecisionDetectTargetLine2D, MoreMountains.TopDownEngine.AIDecisionDetectTargetLine3D, MoreMountains.TopDownEngine.AIDecisionDetectTargetRadius3D, MoreMountains.TopDownEngine.AIDecisionTimeInState, MoreMountains.TopDownEngine.AIDecisionHealth, MoreMountains.TopDownEngine.AIDecisionLineOfSightToTarget2D, MoreMountains.TopDownEngine.AIDecisionLineOfSightToTarget3D, MoreMountains.TopDownEngine.AIDecisionDetectTargetConeOfVision2D, MoreMountains.TopDownEngine.AIDecisionHit, MoreMountains.TopDownEngine.AIDecisionGrounded, MoreMountains.TopDownEngine.AIDecisionDetectTargetConeOfVision3D, MoreMountains.TopDownEngine.AIDecisionTimeSinceStart, MoreMountains.TopDownEngine.AIDecisionReloadNeeded, MoreMountains.TopDownEngine.AIDecisionConditionState, and MoreMountains.TopDownEngine.AIDecisionPathfinderPathToTargetExists.
|
virtual |
Meant to be overridden, called when the Brain enters a State this Decision is in
Reimplemented in MoreMountains.TopDownEngine.AIDecisionHit, MoreMountains.TopDownEngine.AIDecisionGrounded, and MoreMountains.TopDownEngine.AIDecisionTimeInState.
|
virtual |
Meant to be overridden, called when the Brain exits a State this Decision is in
Reimplemented in MoreMountains.TopDownEngine.AIDecisionHit.
|
protected |
string MoreMountains.Tools.AIDecision.Label |
a label you can set to organize your AI Decisions, not used by anything else
|
getset |