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

Atomic task that asynchronously requests a path via PathfindingManager. More...

#include <cstdint>
#include "../../IAtomicTask.h"
#include "../../Pathfinding/PathfindingManager.h"
+ Include dependency graph for Task_RequestPathfinding.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Olympe::Task_RequestPathfinding
 Async pathfinding task that polls PathfindingManager for completion. More...
 

Namespaces

namespace  Olympe
 < Provides AssetID and INVALID_ASSET_ID
 

Detailed Description

Atomic task that asynchronously requests a path via PathfindingManager.

Author
Olympe Engine
Date
2026-02-24

Task_RequestPathfinding submits an async pathfinding request on the first tick and polls for completion on subsequent ticks. When the request completes the path string is written to the "Path" LocalBlackboard key.

Parameters (ParameterMap): "Target" (Vector) - destination position (required) "AsyncDelay" (Float) - simulated delay in seconds (optional, default 0.0)

LocalBlackboard reads: "Position" (Vector) - current entity position (required)

LocalBlackboard output: "Path" (String) - straight-line path string "(sx,sy,sz)->(tx,ty,tz)"

Returns: Running on the first tick (request submitted) and while waiting. Success once the path is written to "Path". Failure if required parameters or BB keys are missing.

Abort() cancels the in-flight request.

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

Definition in file Task_RequestPathfinding.h.