|
TopDown Engine v4.5
|
An AIACtion used to have an AI stop running. More...
Public Member Functions | |
| override void | Initialization () |
| On init we grab our Run ability. | |
| override void | PerformAction () |
| Requests running to stop. | |
| 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 |
| if this is true, this action will only run once in a state (this flag will reset on state exit) | |
| 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 |
| CharacterRun | _characterRun |
| 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] |
An AIACtion used to have an AI stop running.
|
virtual |
On init we grab our Run ability.
Reimplemented from MoreMountains.Tools.AIAction.
|
virtual |
On enter state we reset our flag.
Reimplemented from MoreMountains.Tools.AIAction.
| override void MoreMountains.TopDownEngine.AIActionRunStop.PerformAction | ( | ) |
Requests running to stop.
|
protected |
|
protected |
|
protected |
| bool MoreMountains.TopDownEngine.AIActionRunStop.OnlyRunOnce = true |
if this is true, this action will only run once in a state (this flag will reset on state exit)