TopDown Engine  v3.6
MoreMountains.TopDownEngine.AIDecisionDetectTargetConeOfVision3D Class Reference

This Decision will return true if its MMConeOfVision has detected at least one target, and will set it as the Brain's target More...

Inheritance diagram for MoreMountains.TopDownEngine.AIDecisionDetectTargetConeOfVision3D:
MoreMountains.Tools.AIDecision

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...
 
MMConeOfVision TargetConeOfVision
 
- 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]
 

Detailed Description

This Decision will return true if its MMConeOfVision has detected at least one target, and will set it as the Brain's target

Member Function Documentation

◆ Decide()

override bool MoreMountains.TopDownEngine.AIDecisionDetectTargetConeOfVision3D.Decide ( )
virtual

On Decide we look for a target

Returns

Implements MoreMountains.Tools.AIDecision.

◆ DetectTarget()

virtual bool MoreMountains.TopDownEngine.AIDecisionDetectTargetConeOfVision3D.DetectTarget ( )
protectedvirtual

If the MMConeOfVision has at least one target, it becomes our new brain target and this decision is true, otherwise it's false.

Returns

◆ Initialization()

override void MoreMountains.TopDownEngine.AIDecisionDetectTargetConeOfVision3D.Initialization ( )
virtual

On Init we grab our MMConeOfVision

Reimplemented from MoreMountains.Tools.AIDecision.

Member Data Documentation

◆ SetTargetToNullIfNoneIsFound

bool MoreMountains.TopDownEngine.AIDecisionDetectTargetConeOfVision3D.SetTargetToNullIfNoneIsFound = true

if this is true, this decision will set the AI Brain's Target to null if no target is found

◆ TargetConeOfVision

MMConeOfVision MoreMountains.TopDownEngine.AIDecisionDetectTargetConeOfVision3D.TargetConeOfVision

The documentation for this class was generated from the following file: