(C++)  1.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
grail::planning::Domain Struct Reference

Public Member Functions

 Domain (const std::vector< WorldObjectType > &types)
 Domain (const Domain &other)=delete
Domainoperator= (const Domain &)=delete
ActionTemplateAddActionTemplate (const std::string &name, const std::vector< std::string > &paramNames)
WorldObject CreateObjectOfType (const std::string &name) const
 Creates and object of a type identified by name parameter.
unsigned int GetTypeIndex (const std::string &typeName) const

Public Attributes

std::vector< std::string > objectTypes {}
std::vector< WorldObjectTypetypes {}
std::map< std::string, unsigned int > typemap {}
std::vector< ActionTemplateactionTemplates {}

Constructor & Destructor Documentation

grail::planning::Domain::Domain ( const std::vector< WorldObjectType > &  types)
types- the vector of all possible world object types

Member Function Documentation

ActionTemplate & grail::planning::Domain::AddActionTemplate ( const std::string &  name,
const std::vector< std::string > &  paramNames 

Creates a new ActionTemplate for this domain

name- ActionTemplate name
paramNames- names of action parameter (argument) types
A reference to the new ActionTemplate
unsigned int grail::planning::Domain::GetTypeIndex ( const std::string &  typeName) const
The generated type index for a given type name

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