grail (C  1.0.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
Grail.AIEntity Class Reference

Defines a basic object which can execute behaviors. More...

Collaboration diagram for Grail.AIEntity:

Public Member Functions

 AIEntity (string name="")
 
void AddSharedBlackboard (string key, Blackboard blackboard)
 Inserts pair of key and blackboard into container of shared blackboards. More...
 
Blackboard GetSharedBlackboard (string key)
 Gets shared blackboard identified by given key. More...
 
void SetNewBehavior (Behavior behavior)
 
void AddReasonerChangeObserver (IReasonerChangeObserver observer)
 
void RemoveReasonerChangeObserver (IReasonerChangeObserver observer)
 

Protected Attributes

readonly Dictionary< string, BlackboardsharedBlackboards
 
Reasoner reasoner
 

Properties

int Id = -1 [get, set]
 A unique integer id assigned by AIManager after registering the entity More...
 
string Name [get]
 A name used for display and debug purposes More...
 
Behavior CurrentBehavior [get]
 get - Behavior currently assigned to this entity. More...
 
Behavior PreviousBehavior [get]
 Previously assigned behavior More...
 
Reasoner Reasoner [get, set]
 Reasoner assigned to this entity More...
 
Blackboard Blackboard [get]
 Blackboard owned by this entity More...
 
bool HasActiveBehavior [get]
 Checks whether current behavior is not nullptr. More...
 
Dictionary< string, BlackboardSharedBlackboards [get]
 

Detailed Description

Defines a basic object which can execute behaviors.

Member Function Documentation

◆ AddSharedBlackboard()

void Grail.AIEntity.AddSharedBlackboard ( string  key,
Blackboard  blackboard 
)
inline

Inserts pair of key and blackboard into container of shared blackboards.

Parameters
key
blackboard

◆ GetSharedBlackboard()

Blackboard Grail.AIEntity.GetSharedBlackboard ( string  key)
inline

Gets shared blackboard identified by given key.

Parameters
key
Returns

Property Documentation

◆ Blackboard

Blackboard Grail.AIEntity.Blackboard
get

Blackboard owned by this entity

◆ CurrentBehavior

Behavior Grail.AIEntity.CurrentBehavior
get

get - Behavior currently assigned to this entity.

◆ HasActiveBehavior

bool Grail.AIEntity.HasActiveBehavior
get

Checks whether current behavior is not nullptr.

◆ Id

int Grail.AIEntity.Id = -1
getset

A unique integer id assigned by AIManager after registering the entity

◆ Name

string Grail.AIEntity.Name
get

A name used for display and debug purposes

◆ PreviousBehavior

Behavior Grail.AIEntity.PreviousBehavior
get

Previously assigned behavior

◆ Reasoner

Reasoner Grail.AIEntity.Reasoner
getset

Reasoner assigned to this entity


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