Inventory Engine  v4.0
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Properties | List of all members
MoreMountains.Tools.AIAction Class Referenceabstract

Actions are behaviours and describe what your character is doing. More...

Inherits MonoBehaviour.

Public Types

enum  InitializationModes { InitializationModes.EveryTime, InitializationModes.OnlyOnce }
 

Public Member Functions

abstract void PerformAction ()
 
virtual void Initialization ()
 Initializes the action. More...
 
virtual void OnEnterState ()
 Describes what happens when the brain enters the state this action is in. More...
 
virtual void OnExitState ()
 Describes what happens when the brain exits the state this action is in. More...
 

Public Attributes

InitializationModes InitializationMode
 whether initialization should happen only once, or every time the brain is reset More...
 
string Label
 a label you can set to organize your AI Actions, not used by anything else More...
 

Protected Member Functions

virtual void Awake ()
 On Awake we grab our AIBrain More...
 

Protected Attributes

bool _initialized
 
AIBrain _brain
 

Properties

virtual bool ActionInProgress [get, set]
 
virtual bool ShouldInitialize [get]
 

Detailed Description

Actions are behaviours and describe what your character is doing.

Examples include patrolling, shooting, jumping, etc.

Member Enumeration Documentation

◆ InitializationModes

Enumerator
EveryTime 
OnlyOnce 

Member Function Documentation

◆ Awake()

virtual void MoreMountains.Tools.AIAction.Awake ( )
protectedvirtual

On Awake we grab our AIBrain

◆ Initialization()

virtual void MoreMountains.Tools.AIAction.Initialization ( )
virtual

Initializes the action.

Meant to be overridden

◆ OnEnterState()

virtual void MoreMountains.Tools.AIAction.OnEnterState ( )
virtual

Describes what happens when the brain enters the state this action is in.

Meant to be overridden.

◆ OnExitState()

virtual void MoreMountains.Tools.AIAction.OnExitState ( )
virtual

Describes what happens when the brain exits the state this action is in.

Meant to be overridden.

◆ PerformAction()

abstract void MoreMountains.Tools.AIAction.PerformAction ( )
pure virtual

Member Data Documentation

◆ _brain

AIBrain MoreMountains.Tools.AIAction._brain
protected

◆ _initialized

bool MoreMountains.Tools.AIAction._initialized
protected

◆ InitializationMode

InitializationModes MoreMountains.Tools.AIAction.InitializationMode

whether initialization should happen only once, or every time the brain is reset

◆ Label

string MoreMountains.Tools.AIAction.Label

a label you can set to organize your AI Actions, not used by anything else

Property Documentation

◆ ActionInProgress

virtual bool MoreMountains.Tools.AIAction.ActionInProgress
getset

◆ ShouldInitialize

virtual bool MoreMountains.Tools.AIAction.ShouldInitialize
getprotected

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