Changeset 6121 in orxonox.OLD for branches/objectmanager/src/util/state.h
- Timestamp:
- Dec 15, 2005, 1:34:32 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/objectmanager/src/util/state.h
r5405 r6121 11 11 class WorldEntity; 12 12 template<class T> class tList; 13 //template<class T> class tStack;13 class ObjectManager; 14 14 15 15 //! handles states about orxonox's most importatn objects … … 22 22 23 23 public: 24 // CAMERA // 24 ////////////// 25 /// CAMERA /// 26 ////////////// 25 27 /** @param camera the PNode to the Camera, @param cameraTarget the PNode to the Camera's target */ 26 28 static void setCamera(const PNode* camera, const PNode* cameraTarget); … … 30 32 static inline const PNode* getCameraTarget() { return State::cameraTarget; }; 31 33 32 // WORLD_ENTITY_LIST // 34 ////////////////////// 35 /// OBJECT-MANAGER /// 36 ////////////////////// 37 /** @param objectManager the new Current ObjectManager */ 38 static inline void setObjectManager(ObjectManager* objectManager) { State::objectManager = objectManager; }; 39 /** @returns the current ObjectManager. */ 40 static inline ObjectManager* getObjectManager() { return State::objectManager; }; 41 42 ///////////////////////// 43 /// WORLD_ENTITY_LIST /// 44 ///////////////////////// 33 45 /** @param worldEntityList The World's List of WorldEntities */ 34 46 static inline void setWorldEntityList(tList<WorldEntity>* worldEntityList) { State::worldEntityList = worldEntityList; }; … … 42 54 static const PNode* cameraTarget; //!< A reference to the cameraTarget 43 55 static PNode* nullParent; //!< A reference to the Null-PNode. 56 static ObjectManager* objectManager; //!< A referenct to the current ObjectManager 44 57 45 58 static tList<WorldEntity>* worldEntityList; //!< The List of the worldEntities
Note: See TracChangeset
for help on using the changeset viewer.