class
Blackboard
- Module
- AINavigation
- Header
#include "AINavigation/Blackboard.h"- Namespace
Mowo
Type aliases
| Alias | Description |
|---|---|
using FObserver = std::function<void(FName key)> |
Constructors
| Signature | Name | Description |
|---|---|---|
Blackboard() = default | Blackboard | |
~Blackboard() | ~Blackboard | |
Blackboard(const Blackboard& other) | Blackboard | A copy takes the values and none of the identity: no observers and no sync membership, so it can never write into the original's group. |
Public functions
| Returns | Name | Description |
|---|---|---|
Blackboard& | operator= | |
void | SetBool | |
void | SetInt | |
void | SetFloat | |
void | SetVector | |
void | SetObject | Stored weakly — a destroyed target reads back as nullptr instead of a freed pointer the reader would have to dynamic_cast through. |
void | SetName | |
void | SetEnum | |
void | Unset | |
void | Clear | Drops this blackboard's own values; synced keys belong to the group and survive one member restarting. |
bool | GetBool | |
int | GetInt | |
float | GetFloat | |
Vec3 | GetVector | |
MObject* | GetObject | |
FName | GetName | |
uint8_t | GetEnum | |
bool | GetNumeric | Int, Float, Bool and Enum read as one number — what arithmetic decorators compare. |
bool | GetLocation | A vector key, or the location of the actor an object key holds. |
bool | IsSet | a value of any type is present |
EBBType | TypeOf | EBBType::None if unset |
uint64_t | GetKeyRevision | Bumped on every change of key (0 = never written). |
uint32_t | AddObserver | key None observes every key. |
void | RemoveObserver | |
void | JoinSyncGroup | |
void | LeaveSyncGroup | |
bool | IsSynced |
Function details
Blackboard
C++
Blackboard() = default~Blackboard
C++
~Blackboard()Blackboard
C++
Blackboard(const Blackboard& other)A copy takes the values and none of the identity: no observers and no sync membership, so it can never write into the original's group.
operator=
C++
Blackboard& operator=(const Blackboard& other)SetBool
C++
void SetBool(FName key, bool v)SetInt
C++
void SetInt(FName key, int v)SetFloat
C++
void SetFloat(FName key, float v)SetVector
C++
void SetVector(FName key, const Vec3& v)SetObject
C++
void SetObject(FName key, MObject* v)Stored weakly — a destroyed target reads back as nullptr instead of a freed pointer the reader would have to dynamic_cast through.
SetName
C++
void SetName(FName key, FName v)SetEnum
C++
void SetEnum(FName key, uint8_t v)Unset
C++
void Unset(FName key)Clear
C++
void Clear()Drops this blackboard's own values; synced keys belong to the group and survive one member restarting.
GetBool
C++
bool GetBool(FName key, bool def = false) constGetInt
C++
int GetInt(FName key, int def = 0) constGetFloat
C++
float GetFloat(FName key, float def = 0.0f) constGetVector
C++
Vec3 GetVector(FName key, const Vec3& def = Vec3(0.0f, 0.0f, 0.0f)) constGetObject
C++
MObject* GetObject(FName key) constGetName
C++
FName GetName(FName key) constGetEnum
C++
uint8_t GetEnum(FName key, uint8_t def = 0) constGetNumeric
C++
bool GetNumeric(FName key, float& out) constInt, Float, Bool and Enum read as one number — what arithmetic decorators compare. False for any other type or an unset key.
GetLocation
C++
bool GetLocation(FName key, Vec3& out) constA vector key, or the location of the actor an object key holds.
IsSet
C++
bool IsSet(FName key) consta value of any type is present
TypeOf
C++
EBBType TypeOf(FName key) constEBBType::None if unset
GetKeyRevision
C++
uint64_t GetKeyRevision(FName key) constBumped on every change of key (0 = never written).
AddObserver
C++
uint32_t AddObserver(FName key, FObserver fn)key None observes every key. The handle removes it again.
RemoveObserver
C++
void RemoveObserver(uint32_t handle)JoinSyncGroup
C++
void JoinSyncGroup(std::shared_ptr<FBlackboardSyncGroup> group, const std::vector<FName>& syncedKeys)LeaveSyncGroup
C++
void LeaveSyncGroup()IsSynced
C++
bool IsSynced(FName key) constGenerated from AINavigation/Blackboard.h via ainavigation.json · Oct 27, 2026Version 1.0.0