Corgi Engine
v9.0
|
This decision will return true if the specified Health conditions are met. You can have it be lower, strictly lower, equal, higher or strictly higher than the specified value. More...
Public Types | |
enum | ComparisonModes { ComparisonModes.StrictlyLowerThan, ComparisonModes.LowerThan, ComparisonModes.Equals, ComparisonModes.GreatherThan, ComparisonModes.StrictlyGreaterThan } |
the different comparison modes More... | |
Public Member Functions | |
override void | Initialization () |
On init we grab our Health component More... | |
override bool | Decide () |
On Decide we evaluate our current Health level More... | |
Public Member Functions inherited from MoreMountains.Tools.AIDecision | |
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 | TrueIfHealthIs |
the comparison mode with which we'll evaluate the HealthValue More... | |
int | HealthValue |
the Health value to compare to More... | |
bool | OnlyOnce = true |
whether we want this comparison to be done only once or not 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 | EvaluateHealth () |
Compares our health value and returns true if the condition is met More... | |
Protected Member Functions inherited from MoreMountains.Tools.AIDecision | |
virtual void | Awake () |
On Awake we grab our Brain More... | |
Protected Attributes | |
Health | _health |
bool | _once = false |
Protected Attributes inherited from MoreMountains.Tools.AIDecision | |
AIBrain | _brain |
Additional Inherited Members | |
Properties inherited from MoreMountains.Tools.AIDecision | |
virtual bool | DecisionInProgress [get, set] |
This decision will return true if the specified Health conditions are met. You can have it be lower, strictly lower, equal, higher or strictly higher than the specified value.
|
virtual |
|
protectedvirtual |
Compares our health value and returns true if the condition is met
|
virtual |
On init we grab our Health component
Reimplemented from MoreMountains.Tools.AIDecision.
|
protected |
|
protected |
int MoreMountains.CorgiEngine.AIDecisionHealth.HealthValue |
the Health value to compare to
bool MoreMountains.CorgiEngine.AIDecisionHealth.OnlyOnce = true |
whether we want this comparison to be done only once or not
ComparisonModes MoreMountains.CorgiEngine.AIDecisionHealth.TrueIfHealthIs |
the comparison mode with which we'll evaluate the HealthValue