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

Public Member Functions

 GrailDebugger (ITimestampProvider timestampProvider)
 
void AttachToManager (AIManager manager, bool attachToAllEntities=true)
 Attaches the debugger instance to an AIManager More...
 
void DetachFromManager (AIManager manager)
 Detaches the debugger from the currently selected AI Manager and its entities More...
 
void AttachToEntity (AIEntity entity)
 Starts producing debug data for an entity's reasoner More...
 
void DetachFromEntity (AIEntity entity)
 Stops the production of debug data for an entity's reasoner More...
 
void AddDebugSnapshotReceiver (AIManager manager, IDebugSnapshotReceiver receiver)
 Registers a debug snapshot receiver that can react to newly produced debug data More...
 
void RemoveDebugSnapshotReceiver (AIManager manager, IDebugSnapshotReceiver receiver)
 Removes a debug snapshot receiver More...
 
void Update ()
 Creates debug data for entities and managers that the debugger is attached to, notifies registered snapshot receivers More...
 
void OnReasonerSet (AIEntity entity, Reasoner newReasoner)
 

Member Function Documentation

◆ AddDebugSnapshotReceiver()

void Grail.DebugInfo.GrailDebugger.AddDebugSnapshotReceiver ( AIManager  manager,
IDebugSnapshotReceiver  receiver 
)
inline

Registers a debug snapshot receiver that can react to newly produced debug data

Parameters
receiver

◆ AttachToEntity()

void Grail.DebugInfo.GrailDebugger.AttachToEntity ( AIEntity  entity)
inline

Starts producing debug data for an entity's reasoner

Parameters
entity

◆ AttachToManager()

void Grail.DebugInfo.GrailDebugger.AttachToManager ( AIManager  manager,
bool  attachToAllEntities = true 
)
inline

Attaches the debugger instance to an AIManager

Parameters
managerThe manager to attach to
attachToAllEntitiesif set to true, the debugger will automatically attach to reasoners of all entities

◆ DetachFromEntity()

void Grail.DebugInfo.GrailDebugger.DetachFromEntity ( AIEntity  entity)
inline

Stops the production of debug data for an entity's reasoner

Parameters
entity

◆ DetachFromManager()

void Grail.DebugInfo.GrailDebugger.DetachFromManager ( AIManager  manager)
inline

Detaches the debugger from the currently selected AI Manager and its entities

◆ RemoveDebugSnapshotReceiver()

void Grail.DebugInfo.GrailDebugger.RemoveDebugSnapshotReceiver ( AIManager  manager,
IDebugSnapshotReceiver  receiver 
)
inline

Removes a debug snapshot receiver

Parameters
manager
receiver

◆ Update()

void Grail.DebugInfo.GrailDebugger.Update ( )
inline

Creates debug data for entities and managers that the debugger is attached to, notifies registered snapshot receivers


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