Grail (C#)  1.3.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
Grail.Planners.WorldObject Class Reference
Inheritance diagram for Grail.Planners.WorldObject:
Collaboration diagram for Grail.Planners.WorldObject:

Public Member Functions

 WorldObject (WorldObjectType type)
 
 WorldObject (WorldObject other)
 
bool IsOfType (int typeID)
 
bool IsOfType (string name)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
override string ToString ()
 
- Public Member Functions inherited from Grail.Planners.ParametrizedObject
void MergeParameters (ParametrizedObject other)
 Adds other parameters to own, replacing parameter with other in case of conflict More...
 
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)
 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)
 
Returns
c>true if the other object contains identical set of parameters (including the contents of collections)

 

Public Attributes

string TypeName => type.Name
 

Properties

int ObjectId [get, set]
 

Additional Inherited Members

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

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