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

A class representing planner world state More...

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

Public Member Functions

 WorldState (WorldState other)
 
 WorldState (Domain domain, List< WorldObject > objects)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
WorldObject GetObjectByIndex (int index)
 
WorldObject AddObject (string typeName)
 
void RemoveObject (int objectIndex)
 Adds the object specified by objectIndex to a set of objects that should be removed at the end of the current planner iteration More...
 
List< WorldObjectGetObjectsOfType (string typeName)
 
int CountObjectsOfType (string typeName)
 
Returns
The number of objects of given type, including all derived types

 
override string ToString ()
 
- 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

Dictionary< int, WorldObjectObjects [get]
 
Domain Domain [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 planner world state

Member Function Documentation

◆ RemoveObject()

void Grail.Planning.WorldState.RemoveObject ( int  objectIndex)
inline

Adds the object specified by objectIndex to a set of objects that should be removed at the end of the current planner iteration


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