Corgi Engine  v8.8
MoreMountains.CorgiEngine.AIActionFaceTarget Class Reference

An AIACtion used to have an AI face its AI Brain's Target More...

Inheritance diagram for MoreMountains.CorgiEngine.AIActionFaceTarget:
MoreMountains.Tools.AIAction

Public Member Functions

override void Initialization ()
 On init we grab our Character component More...
 
override void PerformAction ()
 Makes the Character face the Target's direction More...
 
override void OnEnterState ()
 On enter state we reset our flag More...
 
- Public Member Functions inherited from MoreMountains.Tools.AIAction
virtual void OnExitState ()
 Describes what happens when the brain exits the state this action is in. Meant to be overridden. More...
 

Public Attributes

bool OnlyRunOnce = false
 
- Public Attributes inherited from MoreMountains.Tools.AIAction
InitializationModes InitializationMode
 
string Label
 a label you can set to organize your AI Actions, not used by anything else More...
 

Protected Attributes

Character _character
 
bool _alreadyRan = false
 
bool _isCharacterNull
 
Character.FacingDirections _facingDirection
 
- Protected Attributes inherited from MoreMountains.Tools.AIAction
bool _initialized
 
AIBrain _brain
 

Additional Inherited Members

- Public Types inherited from MoreMountains.Tools.AIAction
enum  InitializationModes { InitializationModes.EveryTime, InitializationModes.OnlyOnce }
 
- Protected Member Functions inherited from MoreMountains.Tools.AIAction
virtual void Awake ()
 On Awake we grab our AIBrain More...
 
- Properties inherited from MoreMountains.Tools.AIAction
virtual bool ActionInProgress [get, set]
 
virtual bool ShouldInitialize [get]
 

Detailed Description

An AIACtion used to have an AI face its AI Brain's Target

Member Function Documentation

◆ Initialization()

override void MoreMountains.CorgiEngine.AIActionFaceTarget.Initialization ( )
virtual

On init we grab our Character component

Reimplemented from MoreMountains.Tools.AIAction.

◆ OnEnterState()

override void MoreMountains.CorgiEngine.AIActionFaceTarget.OnEnterState ( )
virtual

On enter state we reset our flag

Reimplemented from MoreMountains.Tools.AIAction.

◆ PerformAction()

override void MoreMountains.CorgiEngine.AIActionFaceTarget.PerformAction ( )
virtual

Makes the Character face the Target's direction

Implements MoreMountains.Tools.AIAction.

Member Data Documentation

◆ _alreadyRan

bool MoreMountains.CorgiEngine.AIActionFaceTarget._alreadyRan = false
protected

◆ _character

Character MoreMountains.CorgiEngine.AIActionFaceTarget._character
protected

◆ _facingDirection

Character.FacingDirections MoreMountains.CorgiEngine.AIActionFaceTarget._facingDirection
protected

◆ _isCharacterNull

bool MoreMountains.CorgiEngine.AIActionFaceTarget._isCharacterNull
protected

◆ OnlyRunOnce

bool MoreMountains.CorgiEngine.AIActionFaceTarget.OnlyRunOnce = false

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