The AIEntity class - Defines a basic object which can execute behaviors.
More...
#include <AIEntity.hh>
|
virtual void | Update (float deltaTime) |
| Update - User defined method. Should in some way update entity's state. More...
|
|
|
std::unique_ptr< Reasoner > | playingModel |
|
std::map< std::string, std::shared_ptr< Blackboard > > | sharedBlackboards {} |
|
|
class | AIManager |
|
class | SynchronizedEntityContainer |
|
The AIEntity class - Defines a basic object which can execute behaviors.
◆ AddSharedBlackboard()
void grail::AIEntity::AddSharedBlackboard |
( |
const std::string & |
name, |
|
|
std::shared_ptr< Blackboard > & |
sharedBlackboard |
|
) |
| |
AddSharedBlackboard - Inserts pair of key and blackboard into container of shared blackboards.
- Parameters
-
◆ GetBlackboard() [1/2]
GetBlackboard.
- Returns
- blackboard owned by this entity
◆ GetBlackboard() [2/2]
const Blackboard & grail::AIEntity::GetBlackboard |
( |
| ) |
const |
GetBlackboard.
- Returns
- blackboard owned by this entity
◆ GetCurrentBehavior() [1/2]
Behavior * grail::AIEntity::GetCurrentBehavior |
( |
| ) |
|
GetCurrentBehavior.
- Returns
- pointer to currently assigned behavior
◆ GetCurrentBehavior() [2/2]
const Behavior * grail::AIEntity::GetCurrentBehavior |
( |
| ) |
const |
GetCurrentBehavior.
- Returns
- pointer to const currently assigned behavior
◆ GetCurrentReasoner()
std::unique_ptr< Reasoner > & grail::AIEntity::GetCurrentReasoner |
( |
| ) |
|
GetCurrentReasoner.
- Returns
- current reasoner
◆ GetPreviousBehavior()
Behavior * grail::AIEntity::GetPreviousBehavior |
( |
| ) |
|
GetPreviousBehavior.
- Returns
- raw pointer to previously assigned behavior
◆ GetSharedBlackboard()
const std::shared_ptr< Blackboard > grail::AIEntity::GetSharedBlackboard |
( |
const std::string & |
name | ) |
const |
GetSharedBlackboard - Gets shared blackboard identified by given key.
- Parameters
-
- Returns
- pointer to shared blackboard, nullptr if key is not found
◆ GetUniqueCurrentBehavior()
std::unique_ptr< Behavior > grail::AIEntity::GetUniqueCurrentBehavior |
( |
| ) |
|
GetUniqueCurrentBehavior.
- Returns
- unique pointer to currently assigned behavior
◆ HasActiveBehavior()
bool grail::AIEntity::HasActiveBehavior |
( |
| ) |
const |
HasActiveBehavior - Checks whether current behavior is not nullptr.
- Returns
- false if nullptr, true otherwise
◆ SetNewBehavior()
void grail::AIEntity::SetNewBehavior |
( |
std::unique_ptr< Behavior > |
behavior | ) |
|
SetNewBehavior - Finishes current behavior and starts new one.
- Parameters
-
◆ SetReasoner()
void grail::AIEntity::SetReasoner |
( |
std::unique_ptr< Reasoner > |
reasoner | ) |
|
◆ Update()
void grail::AIEntity::Update |
( |
float |
deltaTime | ) |
|
|
protectedvirtual |
Update - User defined method. Should in some way update entity's state.
- Parameters
-
The documentation for this class was generated from the following files: