![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
Atomic AI task that changes the entity's current state. More...
#include "../../IAtomicTask.h"
Include dependency graph for Task_ChangeState.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | Olympe::Task_ChangeState |
| Writes a new AI state name to "local:current_state" in the LocalBlackboard. More... | |
Namespaces | |
| namespace | Olympe |
| < Provides AssetID and INVALID_ASSET_ID | |
Atomic AI task that changes the entity's current state.
Task_ChangeState writes a new state name to the "local:current_state" key in the entity's LocalBlackboard. This is the standard way for VS graphs to transition AI entities between logical states (e.g. "Idle" → "Patrolling").
Parameters (ParameterMap): "StateName" (String) — target state name (required).
Returns: Success after writing the new state name. Failure if "StateName" is missing or if ctx.LocalBB is null.
C++14 compliant - no C++17/20 features.
Definition in file Task_ChangeState.h.