![]() |
Grail (C++)
1.3.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
|
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 |
GetTypeName. More... | |
bool | operator== (const WorldObject &other) const |
WorldObject & | operator= (const WorldObject &)=delete |
WorldObject & | operator= (WorldObject &&other)=delete |
![]() | |
void | MergeParameters (const ParametrizedObject &other) |
MergeParameters - Adds other parameters to own, replacing parameter with 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 |
Additional Inherited Members | |
![]() | |
ParametrizedObject (MemoryPool *memory) | |
ParametrizedObject (const ParametrizedObject &other) | |
ParametrizedObject (ParametrizedObject &&other)=default | |
![]() | |
std::map< std::string, ObjectParameter * > | parameters {} |
std::map< std::string, std::set< unsigned int > > | indexCollections {} |
MemoryPool * | memory |
std::string grail::planner::WorldObject::GetTypeName | ( | ) | const |
GetTypeName.