WorldObject is the main building block of the state-action representation used in the Planner model.
It represents some entity in the planning space. It has a unique type (e.g. a 'monster') [with multiple inheritance supported] and any number of parameters (e.g. 'position', 'health'). Hence WorldObject is a specialization of ParametrizedObject
WorldObjects can be subjects to various actions.
More...
|
|
string | TypeName => type.Name |
| |
WorldObject is the main building block of the state-action representation used in the Planner model.
It represents some entity in the planning space. It has a unique type (e.g. a 'monster') [with multiple inheritance supported] and any number of parameters (e.g. 'position', 'health'). Hence WorldObject is a specialization of ParametrizedObject
WorldObjects can be subjects to various actions.
◆ WorldObject() [1/2]
◆ WorldObject() [2/2]
| Grail.Planners.WorldObject.WorldObject |
( |
WorldObject |
other | ) |
|
|
inline |
Constructs a new WorldObject that is a copy of the provided object.
◆ IsOfType() [1/2]
| bool Grail.Planners.WorldObject.IsOfType |
( |
int |
typeID | ) |
|
|
inline |
Checks if the type of the WorldObject matches the provided one by ID.
- Parameters
-
- Returns
true if the object has the same type as the provided one.
◆ IsOfType() [2/2]
| bool Grail.Planners.WorldObject.IsOfType |
( |
string |
name | ) |
|
|
inline |
Checks if the type of the WorldObject matches the provided one by name.
- Parameters
-
- Returns
true if the object has the type matching the given name.
◆ ObjectId
| int Grail.Planners.WorldObject.ObjectId |
|
getset |
Returns an integer that uniquely identifies a specific WorldObject instance.
The documentation for this class was generated from the following file:
- GrailPlanners/source/Planner/WorldState/WorldObject.cs