Corgi Engine
v9.2
|
Actions are behaviours and describe what your character is doing. Examples include patrolling, shooting, jumping, etc. More...
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] |
Actions are behaviours and describe what your character is doing. Examples include patrolling, shooting, jumping, etc.
|
strong |
|
protectedvirtual |
On Awake we grab our AIBrain
|
virtual |
Initializes the action. Meant to be overridden
Reimplemented in MoreMountains.CorgiEngine.AIActionPatrol, MoreMountains.CorgiEngine.AIActionFlyPatrol, MoreMountains.CorgiEngine.AIActionPatrolWithinBounds, MoreMountains.CorgiEngine.AIActionClimbLadder, MoreMountains.CorgiEngine.AIActionShoot, MoreMountains.CorgiEngine.AIActionSwapBrain, MoreMountains.CorgiEngine.AIActionChangeWeapon, MoreMountains.CorgiEngine.AIActionFlyTowardsTarget, MoreMountains.CorgiEngine.AIActionJump, MoreMountains.CorgiEngine.AIActionMoveTowardsTarget, MoreMountains.CorgiEngine.AIActionReload, MoreMountains.CorgiEngine.AIActionSelfDestruct, MoreMountains.CorgiEngine.AIActionFaceTarget, MoreMountains.CorgiEngine.AIActionDash, MoreMountains.CorgiEngine.AIActionSetTransformAsTarget, MoreMountains.CorgiEngine.AIActionCrouchStart, MoreMountains.CorgiEngine.AIActionCrouchStop, MoreMountains.CorgiEngine.AIActionRunStart, MoreMountains.CorgiEngine.AIActionRunStop, MoreMountains.CorgiEngine.AIActionSetLastKnownPositionAsTarget, and MoreMountains.CorgiEngine.AIActionSetPlayerAsTarget.
|
virtual |
Describes what happens when the brain enters the state this action is in. Meant to be overridden.
Reimplemented in MoreMountains.CorgiEngine.AIActionShoot, MoreMountains.CorgiEngine.AIActionPatrolWithinBounds, MoreMountains.CorgiEngine.AIActionMoveTowardsTarget, MoreMountains.CorgiEngine.AIActionChangeWeapon, MoreMountains.CorgiEngine.AIActionJump, MoreMountains.CorgiEngine.AIActionFaceTarget, MoreMountains.CorgiEngine.AIActionMMFeedbacks, MoreMountains.CorgiEngine.AIActionReload, MoreMountains.CorgiEngine.AIActionUnityEvents, MoreMountains.CorgiEngine.AIActionSelfDestruct, MoreMountains.CorgiEngine.AIActionSetPlayerAsTarget, and MoreMountains.CorgiEngine.AIActionSetTransformAsTarget.
|
virtual |
Describes what happens when the brain exits the state this action is in. Meant to be overridden.
Reimplemented in MoreMountains.CorgiEngine.AIActionShoot, MoreMountains.CorgiEngine.AIActionFlyPatrol, MoreMountains.CorgiEngine.AIActionClimbLadder, MoreMountains.CorgiEngine.AIActionPatrol, MoreMountains.CorgiEngine.AIActionPatrolWithinBounds, MoreMountains.CorgiEngine.AIActionFlyTowardsTarget, and MoreMountains.CorgiEngine.AIActionMoveTowardsTarget.
|
pure virtual |
Implemented in MoreMountains.CorgiEngine.AIActionPatrol, MoreMountains.CorgiEngine.AIActionFlyPatrol, MoreMountains.CorgiEngine.AIActionClimbLadder, MoreMountains.CorgiEngine.AIActionShoot, MoreMountains.CorgiEngine.AIActionSwapBrain, MoreMountains.CorgiEngine.AIActionChangeWeapon, MoreMountains.CorgiEngine.AIActionFlyTowardsTarget, MoreMountains.CorgiEngine.AIActionJump, MoreMountains.CorgiEngine.AIActionReload, MoreMountains.CorgiEngine.AIActionSelfDestruct, MoreMountains.CorgiEngine.AIActionFaceTarget, MoreMountains.CorgiEngine.AIActionMoveTowardsTarget, MoreMountains.CorgiEngine.AIActionSetLastKnownPositionAsTarget, MoreMountains.CorgiEngine.AIActionSetTransformAsTarget, MoreMountains.CorgiEngine.AIActionDash, MoreMountains.CorgiEngine.AIActionSetPlayerAsTarget, MoreMountains.CorgiEngine.AIActionCrouchStart, MoreMountains.CorgiEngine.AIActionCrouchStop, MoreMountains.CorgiEngine.AIActionRunStart, MoreMountains.CorgiEngine.AIActionRunStop, MoreMountains.CorgiEngine.AIActionMMFeedbacks, MoreMountains.CorgiEngine.AIActionUnityEvents, MoreMountains.CorgiEngine.AIActionDoNothing, and MoreMountains.CorgiEngine.AIActionResetTarget.
|
protected |
|
protected |
InitializationModes MoreMountains.Tools.AIAction.InitializationMode |
whether initialization should happen only once, or every time the brain is reset
string MoreMountains.Tools.AIAction.Label |
a label you can set to organize your AI Actions, not used by anything else
|
getset |
|
getprotected |