Grail (C++)  1.4.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
grail::Reasoner Class Referenceabstract

The Reasoner class - Entity's "brain", assigns them behaviors chosen by user-defined algorithms. More...

#include <Reasoner.hh>

Inheritance diagram for grail::Reasoner:

Public Member Functions

 Reasoner (const Reasoner &)=default
 
 Reasoner (Reasoner &&)=default
 
Reasoneroperator= (const Reasoner &)=default
 
Reasoneroperator= (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< ISnapshotGeneratorCreateSnapshotGenerator (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
 

Detailed Description

The Reasoner class - Entity's "brain", assigns them behaviors chosen by user-defined algorithms.

Member Function Documentation

◆ StageBehavior()

virtual void grail::Reasoner::StageBehavior ( AIEntity entity)
pure virtual

selectBehavior - Runs reasoner's selection algorithm and assigns chosen behavior to provided entity.

Parameters
entity

Implemented in grail::planner::PlannerReasoner, grail::simgames::SimulatedGameReasoner, and grail::utility::UtilityReasoner.


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