Corgi Engine
v9.0
|
This Decision will return true if the current Brain's Target is within the specified range, false otherwise. More...
Public Types | |
enum | ComparisonModes { ComparisonModes.StrictlyLowerThan, ComparisonModes.LowerThan, ComparisonModes.Equals, ComparisonModes.GreatherThan, ComparisonModes.StrictlyGreaterThan } |
The possible comparison modes. More... | |
Public Member Functions | |
override bool | Decide () |
On Decide we check our distance to the Target More... | |
Public Member Functions inherited from MoreMountains.Tools.AIDecision | |
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... | |
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 | EvaluateDistance () |
Returns true if the distance conditions are met More... | |
Protected Member Functions inherited from MoreMountains.Tools.AIDecision | |
virtual void | Awake () |
On Awake we grab our Brain More... | |
Additional Inherited Members | |
Protected Attributes inherited from MoreMountains.Tools.AIDecision | |
AIBrain | _brain |
Properties inherited from MoreMountains.Tools.AIDecision | |
virtual bool | DecisionInProgress [get, set] |
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