![]() |
Grail (C#)
1.3.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
|
A class representing planner world state More...
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< WorldObject > | GetObjectsOfType (string typeName) |
int | CountObjectsOfType (string typeName) |
| |
override string | ToString () |
![]() | |
void | MergeParameters (ParametrizedObject other) |
Adds other parameters to own, replacing parameter with other in case of conflict More... | |
int | GetParametersSize () |
| |
bool | Contains (string name) |
| |
void | SetParameter< ParameterType > (string name, ParameterType value) |
Sets a value of a parameter identified by the given name More... | |
ParameterType | GetParameterValue< ParameterType > (string name) |
Fetches the value of a parameter identified with the given name as a given ParameterType. More... | |
bool | CollectionContains (string collectionName, int objectIndex) |
void | AddCollection (string collectionName) |
Creates a named collection object, which can be used to group many IDs of objects together. The name should be unique or you will otherwise override an existing collection. More... | |
SortedSet< int > | GetCollection (string collectionName) |
bool | HasEqualParams (ParametrizedObject other) |
| |
Public Attributes | |
Dictionary< int, WorldObject > | Objects => objects |
Domain | Domain => domain |
Additional Inherited Members | |
![]() | |
ParametrizedObject (ParametrizedObject other) | |
![]() | |
Dictionary< string, ObjectParameter > | parameters |
Dictionary< string, SortedSet< int > > | indexCollections |
A class representing planner world state
|
inline |
Adds the object specified by objectIndex to a set of objects that should be removed at the end of the current planner iteration
returns>All objects of a given type, including all derived types