Changeset 10197 in orxonox.OLD for branches/camera/src/world_entities
- Timestamp:
- Jan 8, 2007, 11:54:17 PM (18 years ago)
- Location:
- branches/camera/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/camera/src/world_entities/cameraman.cc
r10195 r10197 1 1 #include "shell_command.h" 2 2 #include "cameraman.h" 3 #include "camera.h" 3 4 4 #include "state.h" 5 5 … … 9 9 cameraman::cameraman() 10 10 { 11 currentCam=State::getCamera Node();11 currentCam=State::getCamera(); 12 12 cameras[0]=currentCam; 13 13 camAmount=1; … … 20 20 if (camAmount<6) 21 21 { 22 PNode* newCamera=new Camera();22 Camera* newCamera=new Camera(); 23 23 cameras[camAmount]=newCamera; 24 24 } … … 28 28 { 29 29 if (cameraNo<camAmount) 30 { 30 31 currentCam=cameras[cameraNo]; 32 State::setCamera(currentCam, currentCam->getTargetNode()); 33 } 31 34 32 35 } -
branches/camera/src/world_entities/cameraman.h
r10195 r10197 3 3 4 4 #include "p_node.h" 5 #include "camera.h" 5 6 6 7 class cameraman { 7 8 8 9 private: 9 PNode* currentCam;10 Camera* currentCam; 10 11 int camNo; 11 12 int camAmount; … … 17 18 void setCam(int CameraNo); 18 19 void createCam(); 19 PNode* cameras[6]; 20 Camera* cameras[6]; 21 void moveCam(int x, int y, int z, int speed, int camNo); 22 void moveCurrCam(int x, int y, int z, int speed); 23 20 24 21 25
Note: See TracChangeset
for help on using the changeset viewer.