grail (C  1.0.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
Grail.Planning.Domain Struct Reference

Public Member Functions

 Domain (List< WorldObjectType > types)
 
Parameters
typesthe vector of all possible world object types

 
ActionTemplate AddActionTemplate (string typeName, List< string > parameterNames)
 Creates a new ActionTemplate for this domain More...
 
WorldObject CreateObjectOfType (string typeName)
 Creates and object of a type identified by name parameter More...
 
int GetTypeIndex (string typeName)
 
Returns
The generated type index for a given type name

 

Public Attributes

List< string > objectTypes
 
List< WorldObjectTypetypes
 
Dictionary< string, int > typeMap
 
List< ActionTemplateactionTemplates
 

Member Function Documentation

◆ AddActionTemplate()

ActionTemplate Grail.Planning.Domain.AddActionTemplate ( string  typeName,
List< string >  parameterNames 
)
inline

Creates a new ActionTemplate for this domain

Parameters
typeNameActionTemplate name
parameterNamesNames of action parameter (argument) types
Returns
A reference to the new ActionTemplate

◆ CreateObjectOfType()

WorldObject Grail.Planning.Domain.CreateObjectOfType ( string  typeName)
inline

Creates and object of a type identified by name parameter


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