Changeset 6468 in orxonox.OLD for trunk/src/util
- Timestamp:
- Jan 11, 2006, 12:00:06 PM (19 years ago)
- Location:
- trunk/src/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/state.cc
r6441 r6468 29 29 PNode* State::cameraTarget = NULL; 30 30 31 Player* State::_localPlayer = NULL; 32 SkyBox* State::_skyBox = NULL; 33 31 34 ObjectManager* State::objectManager = NULL; 32 35 -
trunk/src/util/state.h
r6441 r6468 11 11 class WorldEntity; 12 12 class ObjectManager; 13 class SkyBox; 14 class Player; 15 13 16 14 17 //! handles states about orxonox's most importatn objects … … 31 34 static inline PNode* getCameraTarget() { return State::cameraTarget; }; 32 35 36 /** @returns the Local Player */ 37 static inline Player* localsPlayer() { return State::_localPlayer; }; 38 /** @param localPlayer the local Player */ 39 static inline void setLocalPlayer(Player* localPlayer) { State::_localPlayer = localPlayer; }; 40 41 /** @returns the current SkyBox */ 42 static inline SkyBox* skyBox() { return State::_skyBox; }; 43 /** @param skyBox the SkyBox */ 44 static inline SkyBox* setSkyBox(SkyBox* skyBox) { State::_skyBox = skyBox; }; 45 46 33 47 ////////////////////// 34 48 /// OBJECT-MANAGER /// … … 38 52 /** @returns the current ObjectManager. */ 39 53 static inline ObjectManager* getObjectManager() { return State::objectManager; }; 54 40 55 41 56 static inline void setResolution(unsigned int resX, unsigned int resY) { State::_resX = resX; State::_resY = resY; }; … … 55 70 static ObjectManager* objectManager; //!< A referenct to the current ObjectManager 56 71 72 static Player* _localPlayer; //!< The Local Player. 73 static SkyBox* _skyBox; //!< The SkyBox used in the current world. 57 74 static unsigned int _resX; //!< The X Resolution of the screen. 58 75 static unsigned int _resY; //!< The Y Resolution of the screen. 59 };76 }; 60 77 61 78 #endif /* _STATE_H */
Note: See TracChangeset
for help on using the changeset viewer.