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

This action performs the defined number of jumps. Look below for a breakdown of how this class works. More...

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

Public Member Functions

override void Initialization ()
 On init we grab our CharacterJump component More...
 
override void PerformAction ()
 On PerformAction we jump More...
 
override void OnEnterState ()
 When entering this state we reset our jump counter More...
 
- Public Member Functions inherited from MoreMountains.Tools.AIAction
virtual void OnExitState ()
 Describes what happens when the brain exits the state this action is in. Meant to be overridden. More...
 

Public Attributes

int NumberOfJumps = 1
 the number of jumps to perform while in this state 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 Jump ()
 Calls CharacterJump's JumpStart method to initiate the jump More...
 
- Protected Member Functions inherited from MoreMountains.Tools.AIAction
virtual void Awake ()
 On Awake we grab our AIBrain More...
 

Protected Attributes

CharacterJump _characterJump
 
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

This action performs the defined number of jumps. Look below for a breakdown of how this class works.

Member Function Documentation

◆ Initialization()

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

On init we grab our CharacterJump component

Reimplemented from MoreMountains.Tools.AIAction.

◆ Jump()

virtual void MoreMountains.CorgiEngine.AIActionJump.Jump ( )
protectedvirtual

Calls CharacterJump's JumpStart method to initiate the jump

◆ OnEnterState()

override void MoreMountains.CorgiEngine.AIActionJump.OnEnterState ( )
virtual

When entering this state we reset our jump counter

Reimplemented from MoreMountains.Tools.AIAction.

◆ PerformAction()

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

On PerformAction we jump

Implements MoreMountains.Tools.AIAction.

Member Data Documentation

◆ _characterJump

CharacterJump MoreMountains.CorgiEngine.AIActionJump._characterJump
protected

◆ _numberOfJumps

int MoreMountains.CorgiEngine.AIActionJump._numberOfJumps = 0
protected

◆ NumberOfJumps

int MoreMountains.CorgiEngine.AIActionJump.NumberOfJumps = 1

the number of jumps to perform while in this state


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