Changeset 10197 in orxonox.OLD for branches/camera/src/world_entities/cameraman.cc
- Timestamp:
- Jan 8, 2007, 11:54:17 PM (18 years ago)
- File:
-
- 1 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 }
Note: See TracChangeset
for help on using the changeset viewer.