![]() |
(C++)
1.0.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
|
A class representing planner WorldObject type - its name and inheritance structure. More...
#include <WorldObjectType.hh>


Public Member Functions | |
| WorldObjectType (MemoryPool &memory) | |
| WorldObjectType (MemoryPool &memory, const std::string &name, 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) |
| void | InheritFromType (const WorldObjectType &type) |
| unsigned int | GetTypeIndex () const |
| const std::string & | GetName () const |
| const std::vector< std::string > & | GetBaseTypes () const |
| class WorldObject | InstantiateObject () const |
Public Member Functions inherited from grail::planning::ParametrizedObject | |
| void | MergeParameters (const ParametrizedObject &other) |
| 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) |
| Creates a new id collection under the given name. | |
| 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 | SerializeForGUI (std::map< std::string, std::string > &nameValues) const |
| void | SetSerializeForGUIFunction (std::function< void(const ParametrizedObject &object, std::map< std::string, std::string > &nameValues)> function) |
| ParametrizedObject & | operator= (const ParametrizedObject &other) |
| ParametrizedObject & | operator= (ParametrizedObject &&other)=delete |
Additional Inherited Members | |
Protected Member Functions inherited from grail::planning::ParametrizedObject | |
| ParametrizedObject (MemoryPool &memory) | |
| ParametrizedObject (const ParametrizedObject &other) | |
| ParametrizedObject (ParametrizedObject &&other)=default | |
Protected Attributes inherited from grail::planning::ParametrizedObject | |
| std::map< std::string, ObjectParameter * > | parameters {} |
| std::map< std::string, std::set< unsigned int > > | indexCollections {} |
| MemoryPool & | memory |
A class representing planner WorldObject type - its name and inheritance structure.
| grail::planning::WorldObjectType::WorldObjectType | ( | MemoryPool & | memory, |
| const std::string & | name, | ||
| std::vector< std::string > | bases = {} |
||
| ) |
Constructs a WorldObjectType inheriting from bases with specified names Full WorldObjectType data construction is finished only after it's passed to Domain class