grail (C
1.0.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
|
Defines a basic object which can execute behaviors. More...
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, Blackboard > | sharedBlackboards |
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, Blackboard > | SharedBlackboards [get] |
Defines a basic object which can execute behaviors.
|
inline |
Inserts pair of key and blackboard into container of shared blackboards.
key | |
blackboard |
|
inline |
Gets shared blackboard identified by given key.
key |
|
get |
Blackboard owned by this entity
|
get |
Checks whether current behavior is not nullptr.
|
getset |
A unique integer id assigned by AIManager after registering the entity
|
get |
A name used for display and debug purposes
|
get |
Previously assigned behavior