
Public Types | |
| typedef Entities::Iterator | EntityIt |
| typedef std::pair< EntityIt, EntityIt > | EntityRange |
Public Member Functions | |
| void | add (Entity *entity) |
| void | addAnimateableToInit (Animateable *an) |
| void | clear () |
| void | clearTransient () |
| removes and destroys all entities that are not marked as persistent | |
| void | contents (Box &box, Array< Entity * > &contents) |
| template<class T> | |
| void | getAllDynamicEntitiesofType (Array< T * > &entities) |
| void | getAllModelEntities (Array< ModelEntity * > &modelEntities) |
| EntityRange | getEntities () |
| Entity * | getEntity (int id) |
| Entity * | getEntityByName (const std::string &name) |
| physic::ODEWorld * | getPhysicsSystem () |
| void | initAnimateables () |
| void | registerEntity (int id, std::string &name) |
| void | remove (Entity *entity) |
| void | update (double dt) |
Static Public Member Functions | |
| static void | destroyInstance () |
| may be used to manually destroy the singleton instance | |
| static SceneManager * | getInstance () |
| accesses the singleton instance | |
| static bool | isActive () |
| checks if the singleton is active | |
| static bool | isDestroyed () |
| checks if the singleton is destroyed | |
| static bool | isVirgin () |
| checks if the singleton has not been initialized | |
| static void | setPriority (unsigned short) |
| sets this singleton's shutdown priority | |
Protected Types | |
| typedef Array< Entity * > | Dynamics |
| typedef Array< Entity * > | Entities |
Protected Member Functions | |
| Singleton () | |
Static Protected Member Functions | |
| static void | destroyedError () |
| static void | initInstance () |
Protected Attributes | |
| Array< Animateable * > | animateablesToInit |
| Dynamics | dynamicEntities |
| Entities | entities |
| ID2EntityMap | idEntityMap |
| Name2EntityMap | nameEntityMap |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
removes and destroys all entities that are not marked as persistent
|
|
||||||||||||
|
|
|
|
|
|
|
may be used to manually destroy the singleton instance If this function is not called, the instance is destroyed automatically during shutdown. |
|
||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
accesses the singleton instance The exact operation executed by calling this function is determined by the singleton policies.
|
|
|
|
|
|
|
|
|
|
|
|
checks if the singleton is active
|
|
|
checks if the singleton is destroyed
This function returns
|
|
|
checks if the singleton has not been initialized A singleton is not initialized if no instance exists and no instance has been destroyed.
|
|
||||||||||||
|
|
|
|
|
|
|
sets this singleton's shutdown priority The higher the priority, the earlier the instance will be destroyed during shutdown. If the priority is changed, the highest given priority will be used. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.3