Changeset 10193 in orxonox.OLD for branches/camera/src/world_entities
- Timestamp:
- Jan 8, 2007, 9:15:27 PM (18 years ago)
- Location:
- branches/camera/src/world_entities
- Files:
-
- 2 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 -
branches/camera/src/world_entities/cameraman.h
r10192 r10193 10 10 int camNo; 11 11 int camAmount; 12 Pnode* cameras[ 10];12 Pnode* cameras[6]; 13 13 14 14 15 15 public: 16 16 cameraman(); 17 void setCam( Pnode* cam);17 void setCam(int CameraNo); 18 18 void createCam(); 19 19
Note: See TracChangeset
for help on using the changeset viewer.