(C++)  1.0.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
grail::planning::WorldObject Class Reference
Inheritance diagram for grail::planning::WorldObject:
Collaboration diagram for grail::planning::WorldObject:

Public Member Functions

 WorldObject (const WorldObjectType &type)
 
 WorldObject (const WorldObject &other)=default
 
 WorldObject (WorldObject &&other)=default
 
bool IsOfType (unsigned int typeId) const
 
bool IsOfType (const std::string &typeName) const
 
void SetObjectIndex (unsigned int id)
 
unsigned int GetObjectIndex () const
 
std::string GetTypeName () const
 
bool operator== (const WorldObject &other) const
 
WorldObjectoperator= (const WorldObject &)=delete
 
WorldObjectoperator= (WorldObject &&other)=delete
 
- Public Member Functions inherited from grail::planning::ParametrizedObject
void MergeParameters (const ParametrizedObject &other)
 
std::size_t GetParametersSize () const
 
bool Contains (const std::string &paramName) const
 
template<typename ParameterType >
void SetParameter (const std::string &paramName, const ParameterType &paramValue)
 
template<typename ParameterType >
ParameterType GetParameterValue (const std::string &paramName) 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)
 
ParametrizedObjectoperator= (const ParametrizedObject &other)
 
ParametrizedObjectoperator= (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 {}
 
MemoryPoolmemory
 

Member Function Documentation

◆ GetTypeName()

std::string grail::planning::WorldObject::GetTypeName ( ) const
Returns
The name of the type of this World Object

The documentation for this class was generated from the following files: