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

Translates actions defined in SimulatedGame onto Behaviors used in Grail. More...

#include <ISimulatedActionTranslator.hh>

Public Member Functions

 ISimulatedActionTranslator (const ISimulatedActionTranslator &other)=default
 
ISimulatedActionTranslatoroperator= (const ISimulatedActionTranslator &other)=default
 
virtual void AddBehaviors (AIEntity &entity, const ISimulatedGameUnit &simulatedGameUnit, std::vector< const ISimulatedGameAction * > actions, planning::Plan &plan)=0
 Translate actions from SimulatedGames (@actions) into any number of corresponing behaviors and add push them to the @plan object. More...
 

Detailed Description

Translates actions defined in SimulatedGame onto Behaviors used in Grail.

Member Function Documentation

◆ AddBehaviors()

virtual void grail::simulation::ISimulatedActionTranslator::AddBehaviors ( AIEntity entity,
const ISimulatedGameUnit simulatedGameUnit,
std::vector< const ISimulatedGameAction * >  actions,
planning::Plan plan 
)
pure virtual

Translate actions from SimulatedGames (@actions) into any number of corresponing behaviors and add push them to the @plan object.

Parameters
entityThe entity that performs the behaviors.
SimulatedGameUnitThe unit from SimulatedGame that performed the actions.
actionsThe actions to be translated to behaviors.
planA plan object which is a container for behaviors this method has to generate.

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