![]() |
Corgi Engine v9.3
|
This Decision will return true if the current Brain's Target is within the specified range, false otherwise. More...
Public Types | |
enum | ComparisonModes { StrictlyLowerThan , LowerThan , Equals , GreatherThan , StrictlyGreaterThan } |
The possible comparison modes. More... | |
Public Member Functions | |
override bool | Decide () |
On Decide we check our distance to the Target 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 | |
ComparisonModes | ComparisonMode = ComparisonModes.GreatherThan |
the method to use to compare the distance (StrictlyLowerThan, LowerThan, Equals, GreatherThan or StrictlyGreaterThan) More... | |
float | Distance |
the distance to compare with More... | |
![]() | |
string | Label |
a label you can set to organize your AI Decisions, not used by anything else More... | |
Protected Member Functions | |
virtual bool | EvaluateDistance () |
Returns true if the distance conditions are met More... | |
![]() | |
virtual void | Awake () |
On Awake we grab our Brain More... | |
Additional Inherited Members | |
![]() | |
AIBrain | _brain |
![]() | |
virtual bool | DecisionInProgress [getset] |
This Decision will return true if the current Brain's Target is within the specified range, false otherwise.
|
virtual |
|
protectedvirtual |
Returns true if the distance conditions are met
ComparisonModes MoreMountains.CorgiEngine.AIDecisionDistanceToTarget.ComparisonMode = ComparisonModes.GreatherThan |
the method to use to compare the distance (StrictlyLowerThan, LowerThan, Equals, GreatherThan or StrictlyGreaterThan)
float MoreMountains.CorgiEngine.AIDecisionDistanceToTarget.Distance |
the distance to compare with