TopDown Engine  v4.1
MoreMountains.Tools.AIAction Class Referenceabstract

Actions are behaviours and describe what your character is doing. Examples include patrolling, shooting, jumping, etc. More...

Inheritance diagram for MoreMountains.Tools.AIAction:
MoreMountains.TopDownEngine.AIActionAimObject MoreMountains.TopDownEngine.AIActionAimWeaponAtMovement MoreMountains.TopDownEngine.AIActionAimWeaponAtTarget2D MoreMountains.TopDownEngine.AIActionAimWeaponAtTarget3D MoreMountains.TopDownEngine.AIActionChangeWeapon MoreMountains.TopDownEngine.AIActionCrouchStart MoreMountains.TopDownEngine.AIActionCrouchStop MoreMountains.TopDownEngine.AIActionDash MoreMountains.TopDownEngine.AIActionDoNothing MoreMountains.TopDownEngine.AIActionFaceTowardsTarget2D MoreMountains.TopDownEngine.AIActionInvertPatrolDirection MoreMountains.TopDownEngine.AIActionMMFeedbacks MoreMountains.TopDownEngine.AIActionMoveAwayFromTarget2D MoreMountains.TopDownEngine.AIActionMoveAwayFromTarget3D MoreMountains.TopDownEngine.AIActionMovePatrol2D MoreMountains.TopDownEngine.AIActionMovePatrol3D MoreMountains.TopDownEngine.AIActionMoveRandomly2D MoreMountains.TopDownEngine.AIActionMoveRandomly3D MoreMountains.TopDownEngine.AIActionMoveRandomlyGrid MoreMountains.TopDownEngine.AIActionMoveTowardsTarget2D MoreMountains.TopDownEngine.AIActionMoveTowardsTarget3D MoreMountains.TopDownEngine.AIActionPathfinderToPatrol3D MoreMountains.TopDownEngine.AIActionPathfinderToTarget3D MoreMountains.TopDownEngine.AIActionReload MoreMountains.TopDownEngine.AIActionResetTarget MoreMountains.TopDownEngine.AIActionRotateConeOfVision2D MoreMountains.TopDownEngine.AIActionRotateTowardsTarget2D MoreMountains.TopDownEngine.AIActionRotateTowardsTarget3D MoreMountains.TopDownEngine.AIActionRunStart MoreMountains.TopDownEngine.AIActionRunStop MoreMountains.TopDownEngine.AIActionSelfDestruct MoreMountains.TopDownEngine.AIActionSetLastKnownPositionAsTarget MoreMountains.TopDownEngine.AIActionSetPlayerAsTarget MoreMountains.TopDownEngine.AIActionSetTransformAsTarget MoreMountains.TopDownEngine.AIActionShoot2D MoreMountains.TopDownEngine.AIActionShoot3D MoreMountains.TopDownEngine.AIActionSwapBrain MoreMountains.TopDownEngine.AIActionUnityEvents

Public Types

enum  InitializationModes { InitializationModes.EveryTime, InitializationModes.OnlyOnce }
 

Public Member Functions

abstract void PerformAction ()
 
virtual void Initialization ()
 Initializes the action. Meant to be overridden More...
 
virtual void OnEnterState ()
 Describes what happens when the brain enters the state this action is in. Meant to be overridden. More...
 
virtual void OnExitState ()
 Describes what happens when the brain exits the state this action is in. Meant to be overridden. 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

◆ Initialization()

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

Initializes the action. Meant to be overridden

Reimplemented in MoreMountains.TopDownEngine.AIActionMoveRandomlyGrid, MoreMountains.TopDownEngine.AIActionShoot2D, MoreMountains.TopDownEngine.AIActionShoot3D, MoreMountains.TopDownEngine.AIActionAimObject, MoreMountains.TopDownEngine.AIActionMoveRandomly3D, MoreMountains.TopDownEngine.AIActionMoveRandomly2D, MoreMountains.TopDownEngine.AIActionRotateConeOfVision2D, MoreMountains.TopDownEngine.AIActionPathfinderToPatrol3D, MoreMountains.TopDownEngine.AIActionAimWeaponAtTarget2D, MoreMountains.TopDownEngine.AIActionAimWeaponAtTarget3D, MoreMountains.TopDownEngine.AIActionDash, MoreMountains.TopDownEngine.AIActionFaceTowardsTarget2D, MoreMountains.TopDownEngine.AIActionMoveTowardsTarget2D, MoreMountains.TopDownEngine.AIActionAimWeaponAtMovement, MoreMountains.TopDownEngine.AIActionMoveTowardsTarget3D, MoreMountains.TopDownEngine.AIActionMoveAwayFromTarget3D, MoreMountains.TopDownEngine.AIActionPathfinderToTarget3D, MoreMountains.TopDownEngine.AIActionRotateTowardsTarget2D, MoreMountains.TopDownEngine.AIActionChangeWeapon, MoreMountains.TopDownEngine.AIActionInvertPatrolDirection, MoreMountains.TopDownEngine.AIActionMoveAwayFromTarget2D, MoreMountains.TopDownEngine.AIActionRotateTowardsTarget3D, MoreMountains.TopDownEngine.AIActionRunStart, MoreMountains.TopDownEngine.AIActionRunStop, MoreMountains.TopDownEngine.AIActionSelfDestruct, MoreMountains.TopDownEngine.AIActionSwapBrain, MoreMountains.TopDownEngine.AIActionReload, MoreMountains.TopDownEngine.AIActionCrouchStart, MoreMountains.TopDownEngine.AIActionCrouchStop, MoreMountains.TopDownEngine.AIActionSetPlayerAsTarget, MoreMountains.TopDownEngine.AIActionSetTransformAsTarget, and MoreMountains.TopDownEngine.AIActionSetLastKnownPositionAsTarget.

◆ OnEnterState()

◆ OnExitState()

◆ PerformAction()

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

Implemented in MoreMountains.TopDownEngine.AIActionMovePatrol3D, MoreMountains.TopDownEngine.AIActionMovePatrol2D, MoreMountains.TopDownEngine.AIActionMoveRandomlyGrid, MoreMountains.TopDownEngine.AIActionShoot2D, MoreMountains.TopDownEngine.AIActionShoot3D, MoreMountains.TopDownEngine.AIActionFaceTowardsTarget2D, MoreMountains.TopDownEngine.AIActionMoveRandomly3D, MoreMountains.TopDownEngine.AIActionMoveRandomly2D, MoreMountains.TopDownEngine.AIActionRotateConeOfVision2D, MoreMountains.TopDownEngine.AIActionPathfinderToPatrol3D, MoreMountains.TopDownEngine.AIActionAimObject, MoreMountains.TopDownEngine.AIActionAimWeaponAtTarget2D, MoreMountains.TopDownEngine.AIActionDash, MoreMountains.TopDownEngine.AIActionAimWeaponAtTarget3D, MoreMountains.TopDownEngine.AIActionInvertPatrolDirection, MoreMountains.TopDownEngine.AIActionAimWeaponAtMovement, MoreMountains.TopDownEngine.AIActionPathfinderToTarget3D, MoreMountains.TopDownEngine.AIActionMoveTowardsTarget2D, MoreMountains.TopDownEngine.AIActionMoveTowardsTarget3D, MoreMountains.TopDownEngine.AIActionMoveAwayFromTarget3D, MoreMountains.TopDownEngine.AIActionRotateTowardsTarget2D, MoreMountains.TopDownEngine.AIActionChangeWeapon, MoreMountains.TopDownEngine.AIActionRunStart, MoreMountains.TopDownEngine.AIActionRunStop, MoreMountains.TopDownEngine.AIActionMoveAwayFromTarget2D, MoreMountains.TopDownEngine.AIActionRotateTowardsTarget3D, MoreMountains.TopDownEngine.AIActionSelfDestruct, MoreMountains.TopDownEngine.AIActionSwapBrain, MoreMountains.TopDownEngine.AIActionCrouchStart, MoreMountains.TopDownEngine.AIActionCrouchStop, MoreMountains.TopDownEngine.AIActionReload, MoreMountains.TopDownEngine.AIActionSetLastKnownPositionAsTarget, MoreMountains.TopDownEngine.AIActionSetPlayerAsTarget, MoreMountains.TopDownEngine.AIActionMMFeedbacks, MoreMountains.TopDownEngine.AIActionSetTransformAsTarget, MoreMountains.TopDownEngine.AIActionUnityEvents, MoreMountains.TopDownEngine.AIActionDoNothing, and MoreMountains.TopDownEngine.AIActionResetTarget.

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: