A class that represents the type of WorldObject used in planners.
It essentially holds a unique ID determining the type, the name and inheritance structure (types and therefore objects can be organized into inheritance structures).
More...
|
| string | Name => name |
| | Returns the name of the type. More...
|
| |
| List< string > | BaseTypes => baseTypes |
| | Returns the types that are higher in the inheritance structure, i.e., direct and indirect predecessors. More...
|
| |
|
| int | TypeIndex [get, set] |
| | Returns a unique identification number that represents this type. It can be used, for instance, to compare whether two types are the same. More...
|
| |
A class that represents the type of WorldObject used in planners.
It essentially holds a unique ID determining the type, the name and inheritance structure (types and therefore objects can be organized into inheritance structures).
◆ WorldObjectType() [1/2]
| Grail.Planners.WorldObjectType.WorldObjectType |
( |
string |
name, |
|
|
List< string > |
bases = null |
|
) |
| |
|
inline |
Constructs a new WorldObjectType. This overload must be provided with the name and base types. Full WorldObjectType data construction is finished only after it is passed to the Domain class
- Parameters
-
| name | The name of the type. |
| bases | The names of types that are higher along the path up in the inheritance hierarchy. |
◆ WorldObjectType() [2/2]
Constructs a new WorldObjectType. As a copy constructor, this overload uses an existing type to copy from.
- Parameters
-
| other | The new type will become a copy of the provided other |
◆ InheritFromType()
| void Grail.Planners.WorldObjectType.InheritFromType |
( |
WorldObjectType |
type | ) |
|
|
inline |
Makes the type represented by the current WorldObjectType inherit from the provided type.
In practice, it consists in merging parameters from the provided type and adding it to the base types.
- Parameters
-
| type | The type to inherit from. |
◆ InstantiateObject()
| WorldObject Grail.Planners.WorldObjectType.InstantiateObject |
( |
| ) |
|
|
inline |
◆ BaseTypes
| List<string> Grail.Planners.WorldObjectType.BaseTypes => baseTypes |
Returns the types that are higher in the inheritance structure, i.e., direct and indirect predecessors.
◆ Name
| string Grail.Planners.WorldObjectType.Name => name |
Returns the name of the type.
◆ TypeIndex
| int Grail.Planners.WorldObjectType.TypeIndex |
|
getset |
Returns a unique identification number that represents this type. It can be used, for instance, to compare whether two types are the same.
The documentation for this class was generated from the following file:
- GrailPlanners/source/Planner/WorldState/WorldObjectType.cs