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

An AIACtion used to have an AI kill itself. More...

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

Public Member Functions

override void Initialization ()
 On init we grab our Health.
override void PerformAction ()
 Kills the AI.
override void OnEnterState ()
 On enter state we reset our flag.
Public Member Functions inherited from MoreMountains.Tools.AIAction
void PerformAction ()
virtual void OnExitState ()
 Describes what happens when the brain exits the state this action is in. Meant to be overridden.

Public Attributes

bool OnlyRunOnce = true
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

Character _character
Health _health
bool _alreadyRan = false
Protected Attributes inherited from MoreMountains.Tools.AIAction
bool _initialized
AIBrain _brain

Additional Inherited Members

Public Types inherited from MoreMountains.Tools.AIAction
enum  InitializationModes { EveryTime , OnlyOnce }
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

An AIACtion used to have an AI kill itself.

Member Function Documentation

◆ Initialization()

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

On init we grab our Health.

Reimplemented from MoreMountains.Tools.AIAction.

◆ OnEnterState()

override void MoreMountains.TopDownEngine.AIActionSelfDestruct.OnEnterState ( )
virtual

On enter state we reset our flag.

Reimplemented from MoreMountains.Tools.AIAction.

◆ PerformAction()

override void MoreMountains.TopDownEngine.AIActionSelfDestruct.PerformAction ( )

Kills the AI.

Member Data Documentation

◆ _alreadyRan

bool MoreMountains.TopDownEngine.AIActionSelfDestruct._alreadyRan = false
protected

◆ _character

Character MoreMountains.TopDownEngine.AIActionSelfDestruct._character
protected

◆ _health

Health MoreMountains.TopDownEngine.AIActionSelfDestruct._health
protected

◆ OnlyRunOnce

bool MoreMountains.TopDownEngine.AIActionSelfDestruct.OnlyRunOnce = true

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