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