Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Classes | Namespaces
Task_SetAnimation.h File Reference

Atomic AI task that triggers an animation on an entity. More...

#include "../../IAtomicTask.h"
+ Include dependency graph for Task_SetAnimation.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Olympe::Task_SetAnimation
 Requests an animation clip to play on the entity. More...
 

Namespaces

namespace  Olympe
 < Provides AssetID and INVALID_ASSET_ID
 

Detailed Description

Atomic AI task that triggers an animation on an entity.

Author
Olympe Engine
Date
2026-03-08

Task_SetAnimation requests that a named animation be played on the entity. In headless mode it stores the animation reference in the LocalBlackboard under "local:current_animation". In World mode it can be extended to call an AnimationComponent via the ComponentFacade.

Parameters (ParameterMap): "AnimRef" (String) — animation identifier / clip name (required). "Loop" (Bool) — whether to loop (optional, default true).

Returns: Success after writing the animation request. Failure if "AnimRef" is missing or if ctx.LocalBB is null.

C++14 compliant - no C++17/20 features.

Definition in file Task_SetAnimation.h.