Changeset 10272 in orxonox.OLD for branches/camera/src/util
- Timestamp:
- Jan 17, 2007, 6:16:08 PM (18 years ago)
- Location:
- branches/camera/src/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/camera/src/util/state.cc
r9406 r10272 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::CameraMan = 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::CameraMan=cm; 74 } -
branches/camera/src/util/state.h
r8408 r10272 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 CameraManager,*/ 51 static void setCameraman(cameraman*); 52 static inline cameraman* getCameraman() { return State::CameraMan; }; 53 44 54 45 55 //////////////// … … 116 126 static Camera* camera; //!< The current Camera. 117 127 static CameraTarget* cameraTarget; //!< The Camera Target. 128 static cameraman* CameraMan; 118 129 static PNode* cameraNode; //!< A reference to the camera 119 130 static PNode* cameraTargetNode; //!< A reference to the cameraTarget
Note: See TracChangeset
for help on using the changeset viewer.