class

Blackboard

Module
AINavigation
Header
#include "AINavigation/Blackboard.h"
Namespace
Mowo

Type aliases

AliasDescription
using FObserver = std::function<void(FName key)>

Constructors

SignatureNameDescription
Blackboard() = defaultBlackboard
~Blackboard()~Blackboard
Blackboard(const Blackboard& other)BlackboardA 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

ReturnsNameDescription
Blackboard&operator=
voidSetBool
voidSetInt
voidSetFloat
voidSetVector
voidSetObjectStored weakly — a destroyed target reads back as nullptr instead of a freed pointer the reader would have to dynamic_cast through.
voidSetName
voidSetEnum
voidUnset
voidClearDrops this blackboard's own values; synced keys belong to the group and survive one member restarting.
boolGetBool
intGetInt
floatGetFloat
Vec3GetVector
MObject*GetObject
FNameGetName
uint8_tGetEnum
boolGetNumericInt, Float, Bool and Enum read as one number — what arithmetic decorators compare.
boolGetLocationA vector key, or the location of the actor an object key holds.
boolIsSeta value of any type is present
EBBTypeTypeOfEBBType::None if unset
uint64_tGetKeyRevisionBumped on every change of key (0 = never written).
uint32_tAddObserverkey None observes every key.
voidRemoveObserver
voidJoinSyncGroup
voidLeaveSyncGroup
boolIsSynced

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) const

GetInt

C++
int GetInt(FName key, int def = 0) const

GetFloat

C++
float GetFloat(FName key, float def = 0.0f) const

GetVector

C++
Vec3 GetVector(FName key, const Vec3& def = Vec3(0.0f, 0.0f, 0.0f)) const

GetObject

C++
MObject* GetObject(FName key) const

GetName

C++
FName GetName(FName key) const

GetEnum

C++
uint8_t GetEnum(FName key, uint8_t def = 0) const

GetNumeric

C++
bool GetNumeric(FName key, float& out) const

Int, 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) const

A vector key, or the location of the actor an object key holds.

IsSet

C++
bool IsSet(FName key) const

a value of any type is present

TypeOf

C++
EBBType TypeOf(FName key) const

EBBType::None if unset

GetKeyRevision

C++
uint64_t GetKeyRevision(FName key) const

Bumped 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) const
Generated from AINavigation/Blackboard.h via ainavigation.json · Oct 27, 2026Version 1.0.0