![]() |
Grail (C#)
1.4.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
|
This class represents a complete planning domain.
It includes all the defined types of world objects and templates of actions.
More...
Public Member Functions | |
| Domain (List< WorldObjectType > types) | |
| Constructs a new Domain instance. More... | |
| ActionTemplate | AddActionTemplate (string actionName, List< string > parameterNames) |
| Creates a new ActionTemplate and adds it to this planning domain. More... | |
| WorldObject | CreateObjectOfType (string typeName) |
| Creates a new WorldObject of the type identified by the typeName parameter. More... | |
| readonly int | GetTypeIndex (string typeName) |
| Gets the type index (ID) for the given typeName . More... | |
Public Attributes | |
| List< string > | objectTypes |
| List< WorldObjectType > | types |
| Dictionary< string, int > | typeMap |
| List< ActionTemplate > | actionTemplates |
This class represents a complete planning domain.
It includes all the defined types of world objects and templates of actions.
|
inline |
Constructs a new Domain instance.
| types | The vector of all possible world object types |
| Exception |
|
inline |
Creates a new ActionTemplate and adds it to this planning domain.
| actionName | The name of the ActionTemplate to create. |
| parameterNames | Names of the action's parameters (argument) types |
|
inline |
Creates a new WorldObject of the type identified by the typeName parameter.
|
inline |
Gets the type index (ID) for the given typeName .