![]() |
Grail (C#)
1.4.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
|
This class represents a binding between the in-game objects (Implementing IPlannerObject interface) and plan-space objects (used internally by the Planner) by means of WorldObjects.
Each mapping has an index associated that corresponds to the ordering in the list returned by the DomainTranslator.GeneratePlannerObjects(Core.AIEntity, Goal) method.
More...
Public Member Functions | |
| bool | TryGetIndexOfObject (IPlannerObject plannerObject, out int index) |
| Attempts to get the WorldObject's index associated within the binding that corresponds to the given IPlannerObject. More... | |
| ObjectClass | GetObjectByIndex< ObjectClass > (int index) |
| Attempts to get a IPlannerObject corresponding to the given index stored in the binding. This function casts this object to the specified ObjectClass. More... | |
This class represents a binding between the in-game objects (Implementing IPlannerObject interface) and plan-space objects (used internally by the Planner) by means of WorldObjects.
Each mapping has an index associated that corresponds to the ordering in the list returned by the DomainTranslator.GeneratePlannerObjects(Core.AIEntity, Goal) method.
|
inline |
Attempts to get a IPlannerObject corresponding to the given index stored in the binding. This function casts this object to the specified ObjectClass.
null if the index was not found.| ObjectClass | : | class | |
| ObjectClass | : | IPlannerObject |
|
inline |
Attempts to get the WorldObject's index associated within the binding that corresponds to the given IPlannerObject.
true if the plannerObject has been assigned, false otherwise.