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

Requires a CharacterFly ability. Makes the character fly up to the specified MinimumDistance in the direction of the target. That's how the RetroGhosts move. More...

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

Public Member Functions

override void Initialization ()
 On init we grab our CharacterFly ability More...
 
override void PerformAction ()
 On PerformAction we fly More...
 
override void OnExitState ()
 On exit state we stop our movement More...
 
- Public Member Functions inherited from MoreMountains.Tools.AIAction
virtual void OnEnterState ()
 Describes what happens when the brain enters the state this action is in. Meant to be overridden. More...
 

Public Attributes

float MinimumDistance = 1f
 the minimum distance from the target this Character can reach. More...
 
- 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 Member Functions

virtual void Fly ()
 Moves the character towards the target if needed More...
 
- Protected Member Functions inherited from MoreMountains.Tools.AIAction
virtual void Awake ()
 On Awake we grab our AIBrain More...
 

Protected Attributes

CharacterFly _characterFly
 
int _numberOfJumps = 0
 
- 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 }
 
- Properties inherited from MoreMountains.Tools.AIAction
virtual bool ActionInProgress [get, set]
 
virtual bool ShouldInitialize [get]
 

Detailed Description

Requires a CharacterFly ability. Makes the character fly up to the specified MinimumDistance in the direction of the target. That's how the RetroGhosts move.

Member Function Documentation

◆ Fly()

virtual void MoreMountains.CorgiEngine.AIActionFlyTowardsTarget.Fly ( )
protectedvirtual

Moves the character towards the target if needed

◆ Initialization()

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

On init we grab our CharacterFly ability

Reimplemented from MoreMountains.Tools.AIAction.

◆ OnExitState()

override void MoreMountains.CorgiEngine.AIActionFlyTowardsTarget.OnExitState ( )
virtual

On exit state we stop our movement

Reimplemented from MoreMountains.Tools.AIAction.

◆ PerformAction()

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

On PerformAction we fly

Implements MoreMountains.Tools.AIAction.

Member Data Documentation

◆ _characterFly

CharacterFly MoreMountains.CorgiEngine.AIActionFlyTowardsTarget._characterFly
protected

◆ _numberOfJumps

int MoreMountains.CorgiEngine.AIActionFlyTowardsTarget._numberOfJumps = 0
protected

◆ MinimumDistance

float MoreMountains.CorgiEngine.AIActionFlyTowardsTarget.MinimumDistance = 1f

the minimum distance from the target this Character can reach.


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