Grail (C++)
1.4.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
|
The Reasoner class - Entity's "brain", assigns them behaviors chosen by user-defined algorithms. More...
#include <Reasoner.hh>
Public Member Functions | |
Reasoner (const Reasoner &)=default | |
Reasoner (Reasoner &&)=default | |
Reasoner & | operator= (const Reasoner &)=default |
Reasoner & | operator= (Reasoner &&)=default |
virtual void | StageBehavior (AIEntity &entity)=0 |
selectBehavior - Runs reasoner's selection algorithm and assigns chosen behavior to provided entity. More... | |
virtual std::unique_ptr< ISnapshotGenerator > | CreateSnapshotGenerator (size_t) |
Protected Member Functions | |
virtual void | ClearCache () |
ClearCache - called when assigning this reasoner to an entity. Clears internally stored data, which may be invalidated when assigned to a different entity. | |
Friends | |
class | AIEntity |
The Reasoner class - Entity's "brain", assigns them behaviors chosen by user-defined algorithms.
|
pure virtual |
selectBehavior - Runs reasoner's selection algorithm and assigns chosen behavior to provided entity.
entity |
Implemented in grail::planner::PlannerReasoner, grail::simgames::SimulatedGameReasoner, and grail::utility::UtilityReasoner.