(C++)  1.0.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
grail::GrailDebugger Class Reference
Inheritance diagram for grail::GrailDebugger:
Collaboration diagram for grail::GrailDebugger:

Public Member Functions

 GrailDebugger (const std::shared_ptr< ITimestampProvider > &timestampProvider)
 
void AttachToManager (AIManager *manager, bool attachToAllEntities=true)
 AttachToManager - attaches the debugger instance to an AIManager. More...
 
void DetachFromManager (AIManager *manager)
 DetachFromCurrentlyObservedManager - detaches the debugger from the currently selected AI Manager and its entities.
 
void AttachToEntity (AIEntity &entity)
 AttachToEntity - starts producing debug data for an entity's reasoner. More...
 
void DetachFromEntity (AIEntity &entity)
 DetachFromEntity - stops the production of debug data for an entity's reasoner. More...
 
void AddDebugSnapshotReceiver (const AIManager *manager, IDebugSnapshotReceiver *receiver)
 AddDebugSnapshotReceiver - registers a debug snapshot receiver that can react to newly produced debug data.
 
void RemoveDebugSnapshotReceiver (const AIManager *manager, IDebugSnapshotReceiver *receiver)
 AddDebugSnapshotReceiver - removes a debug snapshot receiver.
 
void Update ()
 Creates debug data for entities and managers that the debugger is attached to, notifies registered snapshot receivers.
 
void OnReasonerSet (AIEntity &entity, Reasoner *newReasoner) override
 
void OnEntityAdded (const AIManager &manager, AIEntity &entity) override
 
void OnEntityRemoved (const AIManager &manager, size_t entityId) override
 
- Public Member Functions inherited from grail::IEntityChangeObserver
 IEntityChangeObserver (const IEntityChangeObserver &)=delete
 
 IEntityChangeObserver (IEntityChangeObserver &&)=delete
 
IEntityChangeObserveroperator= (const IEntityChangeObserver &)=delete
 
IEntityChangeObserveroperator= (IEntityChangeObserver &&)=delete
 

Member Function Documentation

◆ AttachToEntity()

void grail::GrailDebugger::AttachToEntity ( AIEntity entity)

AttachToEntity - starts producing debug data for an entity's reasoner.

Parameters
entity- the entity to attach to

◆ AttachToManager()

void grail::GrailDebugger::AttachToManager ( AIManager manager,
bool  attachToAllEntities = true 
)

AttachToManager - attaches the debugger instance to an AIManager.

Parameters
manager- the manager to attach to
attachToAllEntities- if set to true, the debugger will automatically attach to reasoners of all entities

◆ DetachFromEntity()

void grail::GrailDebugger::DetachFromEntity ( AIEntity entity)

DetachFromEntity - stops the production of debug data for an entity's reasoner.

Parameters
entity- the entity to detach from

The documentation for this class was generated from the following files: