TopDown Engine v4.5
Loading...
Searching...
No Matches
MoreMountains.TopDownEngine.AIActionDash Class Reference

This action lets your AI agent dash when performed. More...

Inheritance diagram for MoreMountains.TopDownEngine.AIActionDash:
MoreMountains.Tools.AIAction

Public Types

enum  Modes { TowardsTarget , AwayFromTarget , None }
 the direction the dash should occur in More...
Public Types inherited from MoreMountains.Tools.AIAction
enum  InitializationModes { EveryTime , OnlyOnce }

Public Member Functions

override void Initialization ()
 On initialization we grab our dash ability and auto set it up if needed.
override void PerformAction ()
 On PerformAction we set the dash direction and start the dash.
Public Member Functions inherited from MoreMountains.Tools.AIAction
void PerformAction ()
virtual void OnEnterState ()
 Describes what happens when the brain enters the state this action is in. Meant to be overridden.
virtual void OnExitState ()
 Describes what happens when the brain exits the state this action is in. Meant to be overridden.

Public Attributes

Modes Mode = Modes.TowardsTarget
 the direction the dash should occur in
bool AutoSetupDashMode = true
 whether or not the dash mode should be setup to Script automatically on the dash ability
Public Attributes inherited from MoreMountains.Tools.AIAction
InitializationModes InitializationMode
 whether initialization should happen only once, or every time the brain is reset
string Label
 a label you can set to organize your AI Actions, not used by anything else

Protected Attributes

CharacterDash2D _characterDash2D
CharacterDash3D _characterDash3D
Protected Attributes inherited from MoreMountains.Tools.AIAction
bool _initialized
AIBrain _brain

Additional Inherited Members

Protected Member Functions inherited from MoreMountains.Tools.AIAction
virtual void Awake ()
 On Awake we grab our AIBrain.
Properties inherited from MoreMountains.Tools.AIAction
virtual bool ActionInProgress [get, set]
virtual bool ShouldInitialize [get]

Detailed Description

This action lets your AI agent dash when performed.

Member Enumeration Documentation

◆ Modes

the direction the dash should occur in

Enumerator
TowardsTarget 
AwayFromTarget 
None 

Member Function Documentation

◆ Initialization()

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

On initialization we grab our dash ability and auto set it up if needed.

Reimplemented from MoreMountains.Tools.AIAction.

◆ PerformAction()

override void MoreMountains.TopDownEngine.AIActionDash.PerformAction ( )

On PerformAction we set the dash direction and start the dash.

Member Data Documentation

◆ _characterDash2D

CharacterDash2D MoreMountains.TopDownEngine.AIActionDash._characterDash2D
protected

◆ _characterDash3D

CharacterDash3D MoreMountains.TopDownEngine.AIActionDash._characterDash3D
protected

◆ AutoSetupDashMode

bool MoreMountains.TopDownEngine.AIActionDash.AutoSetupDashMode = true

whether or not the dash mode should be setup to Script automatically on the dash ability

◆ Mode

Modes MoreMountains.TopDownEngine.AIActionDash.Mode = Modes.TowardsTarget

the direction the dash should occur in


The documentation for this class was generated from the following file:
  • H:/Code/MoreMountains/topdownengine/Assets/TopDownEngine/Common/Scripts/Characters/AI/Advanced/AIActionDash.cs