Changeset 10206 in orxonox.OLD for branches/camera/src/world_entities/cameraman.cc
- Timestamp:
- Jan 10, 2007, 1:51:44 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/camera/src/world_entities/cameraman.cc
r10205 r10206 1 /* 2 orxonox - the future of 3D-vertical-scrollers 3 4 Copyright (C) 2004 orx 5 6 This program is free software; you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation; either version 2, or (at your option) 9 any later version. 10 11 ### File Specific: 12 main-programmer: Filip Gospodinov 13 co-programmer: 14 */ 15 1 16 #include "shell_command.h" 2 17 #include "cameraman.h" … … 10 25 { 11 26 currentCam=State::getCamera(); 12 cameras[0]=currentCam; 13 camAmount=1; 27 this->cameras.push_back(currentCam); 14 28 15 29 } … … 18 32 void cameraman::createCam() 19 33 { 20 if (camAmount<6)21 {22 34 Camera* newCamera=new Camera(); 23 cameras[camAmount]=newCamera; 24 } 35 this->cameras.push_back(newCamera); 36 //cameraList.size(); 37 //cameraList[4] 25 38 } 26 39 27 40 void cameraman::setCam(int cameraNo) 28 41 { 29 if (cameraNo<cam Amount)42 if (cameraNo<cameras.size()) 30 43 { 31 44 currentCam=cameras[cameraNo]; … … 62 75 void cameraman::jumpCam(int x, int y, int z, int camNo) 63 76 { 64 // cameras[camNo]77 cameras[camNo]->target->jump(x, y, z); 65 78 } 66 79 67 80 68 void jumpCurrCam(int x, int y, int z)81 void cameraman::jumpCurrCam(int x, int y, int z) 69 82 { 83 currentCam->target->jump(x, y, z); 70 84 } 71 85
Note: See TracChangeset
for help on using the changeset viewer.