Changeset 10379 in orxonox.OLD for trunk/src/util
- Timestamp:
- Jan 26, 2007, 10:58:31 AM (18 years ago)
- Location:
- trunk/src/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/state.cc
r9406 r10379 20 20 21 21 #include "camera.h" 22 #include "cameraman.h" 22 23 23 24 #ifndef NULL … … 31 32 Camera* State::camera = NULL; 32 33 CameraTarget* State::cameraTarget = NULL; 34 35 CameraMan* State::cameraManager = NULL; 33 36 34 37 PNode* State::cameraNode = NULL; … … 63 66 State::cameraTargetNode = cameraTarget; 64 67 } 68 69 70 void State::setCameraman(CameraMan* cm) 71 72 { 73 State::cameraManager=cm; 74 } -
trunk/src/util/state.h
r10368 r10379 18 18 class ObjectManager; 19 19 class GameRules; 20 20 class CameraMan; 21 21 class ScriptManager; 22 22 … … 42 42 /** @returns a Pointer to the CameraTarget */ 43 43 static inline PNode* getCameraTargetNode() { return State::cameraTargetNode; }; 44 45 46 47 ///////////////////// 48 /// CAMERAMANAGER /// 49 ///////////////////// 50 /** @param CameraMan the PNode to the cameraManagerager,*/ 51 static void setCameraman(CameraMan*); 52 static inline CameraMan* getCameraman() { return State::cameraManager; }; 53 44 54 45 55 //////////////// … … 123 133 static Camera* camera; //!< The current Camera. 124 134 static CameraTarget* cameraTarget; //!< The Camera Target. 135 static CameraMan* cameraManager; 125 136 static PNode* cameraNode; //!< A reference to the camera 126 137 static PNode* cameraTargetNode; //!< A reference to the cameraTarget
Note: See TracChangeset
for help on using the changeset viewer.