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

A class representing a planner WorldObject type - its name and inheritance structure. More...

Inheritance diagram for Grail.Planning.WorldObjectType:
Collaboration diagram for Grail.Planning.WorldObjectType:

Public Member Functions

 WorldObjectType (string name, List< string > bases=null)
 
 WorldObjectType (WorldObjectType other)
 
bool IsOfType (int type)
 
bool IsOfType (string name)
 
void InheritFromType (WorldObjectType type)
 
WorldObject InstantiateObject ()
 
- Public Member Functions inherited from Grail.Planning.ParametrizedObject
void MergeParameters (ParametrizedObject other)
 
int GetParametersSize ()
 
Returns
The number of parameters assigned to this object

 
bool Contains (string name)
 
Returns
true if the object contains a parameter with the given name, false otherwise

 
void SetParameter< ParameterType > (string name, ParameterType value)
 
ParameterType GetParameterValue< ParameterType > (string name)
 
bool CollectionContains (string collectionName, int objectIndex)
 
void AddCollection (string collectionName)
 
SortedSet< int > GetCollection (string collectionName)
 
bool HasEqualParams (ParametrizedObject other)
 
void SerializeForGUI (Dictionary< string, string > state)
 

Properties

int TypeIndex [get, set]
 
string Name [get]
 
List< string > BaseTypes [get]
 

Additional Inherited Members

- Protected Member Functions inherited from Grail.Planning.ParametrizedObject
 ParametrizedObject (ParametrizedObject other)
 
- Protected Attributes inherited from Grail.Planning.ParametrizedObject
Dictionary< string, ObjectParameterparameters
 
Dictionary< string, SortedSet< int > > indexCollections
 

Detailed Description

A class representing a planner WorldObject type - its name and inheritance structure.

Constructor & Destructor Documentation

◆ WorldObjectType()

Grail.Planning.WorldObjectType.WorldObjectType ( string  name,
List< string >  bases = null 
)
inline

Constructs a WorldObjectType inheriting from bases with specified names Full WorldObjectType data construction is finished only after it's passed to Domain class


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