|
| | WorldObjectType (MemoryPool *memory) |
| |
| | WorldObjectType (MemoryPool *memory, const std::string &name, const std::vector< std::string > &bases={}) |
| |
|
| WorldObjectType (const WorldObjectType &other) |
| |
|
| WorldObjectType (WorldObjectType &&other)=default |
| |
|
WorldObjectType & | operator= (const WorldObjectType &)=delete |
| |
|
WorldObjectType & | operator= (WorldObjectType &&)=delete |
| |
| bool | IsOfType (unsigned int type) const |
| |
| bool | IsOfType (const std::string &typeName) const |
| |
|
void | SetTypeIndex (unsigned int id) |
| | Sets a unique identification number that represents this type. It can be used, for instance, to compare whether two types are the same.
|
| |
| void | InheritFromType (const WorldObjectType &type) |
| |
|
unsigned int | GetTypeIndex () const |
| | Gets a unique identification number that represents this type. It can be used, for instance, to compare whether two types are the same.
|
| |
| const std::string & | GetName () const |
| |
| const std::vector< std::string > & | GetBaseTypes () const |
| |
|
class WorldObject | InstantiateObject () const |
| | Constructs a new WorldObject of this type.
|
| |
| void | MergeParameters (const ParametrizedObject &other) |
| | MergeParameters - Adds other parameters to the own one, replacing parameter with those of other in case of conflict. More...
|
| |
| std::size_t | GetParametersSize () const |
| |
| bool | Contains (const std::string ¶mName) const |
| |
| template<typename ParameterType > |
| void | SetParameter (const std::string ¶mName, const ParameterType ¶mValue) |
| |
| template<typename ParameterType > |
| ParameterType | GetParameterValue (const std::string ¶mName) const |
| |
| bool | CollectionContains (const std::string &collectionName, unsigned int objectIndex) const |
| |
| void | AddCollection (const std::string &collectionName) |
| |
| std::set< unsigned int > * | GetCollection (const std::string &name) |
| |
| const std::set< unsigned int > * | GetCollection (const std::string &name) const |
| |
| bool | HasEqualParams (const ParametrizedObject &other) const |
| |
| void | SetSerializeSnapshotFunction (std::function< void(const ParametrizedObject &object, std::map< std::string, std::string > &nameValues)> function) |
| | SetSerializeSnapshotFunction - Sets a function serializing a snapshot of parameter values to string. More...
|
| |
|
ParametrizedObject & | operator= (const ParametrizedObject &other) |
| |
|
ParametrizedObject & | operator= (ParametrizedObject &&other)=default |
| |
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).