Changeset 10193 in orxonox.OLD for branches/camera/src/world_entities/cameraman.cc
- Timestamp:
- Jan 8, 2007, 9:15:27 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/camera/src/world_entities/cameraman.cc
r10192 r10193 8 8 cameraman::cameraman() 9 9 { 10 10 currentCam=State::getCameraNode(); 11 cameras[0]=currentCam; 12 camAmount=1; 11 13 12 14 } … … 15 17 void cameraman::createCam() 16 18 { 17 18 19 19 if (camAmont<6) 20 { 21 Pnode* newCamera=new Camera(); 22 cameras[camAmount]=newCamera; 20 23 } 21 24 22 25 23 void cameraman::setCam( PNode* cam)26 void cameraman::setCam(int cameraNo) 24 27 { 25 currentCam=cam; 28 if (cameraNo<camAmount) 29 currentCam=cameras[cameraNo]; 26 30 } 27 31
Note: See TracChangeset
for help on using the changeset viewer.