TopDown Engine
v4.0
|
This Decision will return true if its MMConeOfVision has detected at least one target, and will set it as the Brain's target More...
Public Member Functions | |
override void | Initialization () |
On Init we grab our MMConeOfVision More... | |
override bool | Decide () |
On Decide we look for a target 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 | |
bool | SetTargetToNullIfNoneIsFound = true |
if this is true, this decision will set the AI Brain's Target to null if no target is found More... | |
MMConeOfVision2D | TargetConeOfVision2D |
the cone of vision 2D to rotate 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 | DetectTarget () |
If the MMConeOfVision has at least one target, it becomes our new brain target and this decision is true, otherwise it's false. 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 its MMConeOfVision has detected at least one target, and will set it as the Brain's target
|
virtual |
|
protectedvirtual |
If the MMConeOfVision has at least one target, it becomes our new brain target and this decision is true, otherwise it's false.
|
virtual |
On Init we grab our MMConeOfVision
Reimplemented from MoreMountains.Tools.AIDecision.
bool MoreMountains.TopDownEngine.AIDecisionDetectTargetConeOfVision2D.SetTargetToNullIfNoneIsFound = true |
if this is true, this decision will set the AI Brain's Target to null if no target is found
MMConeOfVision2D MoreMountains.TopDownEngine.AIDecisionDetectTargetConeOfVision2D.TargetConeOfVision2D |
the cone of vision 2D to rotate