SceneΒΆ
Inherited: Object
DescriptionΒΆ
The Scene class serves as a container for actors and entities within the application, providing methods to interact with the world and manage the associated resource.
Public MethodsΒΆ
void |
addToGroup (Object * object, const TString & group) |
void |
addToGroupByHash (Object * object, uint32_t hash) |
Object::ObjectList |
getObjectsInGroup (const TString & group) |
Object::ObjectList |
getObjectsInGroupByHash (uint32_t hash) |
void |
removeFromGroup (Object * object, const TString & group) |
void |
removeFromGroupByHash (Object * object, uint32_t hash) |
World * |
world () const |
Static MethodsΒΆ
None
Methods DescriptionΒΆ
Adds object to group.
void Scene::addToGroupByHash (Object * object, uint32_t hash)
Adds object to a group with specific hash.
Object::ObjectList Scene::getObjectsInGroup (TString & group)
Returns a list of objects in group.
Object::ObjectList Scene::getObjectsInGroupByHash (uint32_t hash)
Returns a list of objects from a group with specific hash.
Removes object from group.
void Scene::removeFromGroupByHash (Object * object, uint32_t hash)
Removes object from a group with specific hash.
World * Scene::world () const
Returns the World to which the scene belongs.