- Timestamp:
- Jun 7, 2004, 11:14:21 PM (20 years ago)
- Location:
- orxonox/trunk/core
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/core/data_tank.cc
r1856 r1919 19 19 using namespace std; 20 20 21 float DataTank::xOffset = 0; 22 float DataTank::yOffset = 0; 23 float DataTank::zOffset = 0; 21 24 22 25 DataTank::DataTank () {} 23 24 25 26 26 DataTank::~DataTank () {} 27 27 -
orxonox/trunk/core/data_tank.h
r1904 r1919 10 10 ~DataTank (); 11 11 12 static float xOffset; 13 static float yOffset; 14 static float zOffset; 15 12 16 }; 13 17 -
orxonox/trunk/core/shoot_laser.cc
r1900 r1919 57 57 /* fix2: conditions, that a struct tree can be cut off */ 58 58 /* fix3: more efficent and nicer please */ 59 if (tmpShoot->yCor > 20)59 if (tmpShoot->yCor - DataTank::yOffset > 20) 60 60 { 61 61 /* normal case: delete one element, link the others */ -
orxonox/trunk/core/world.cc
r1918 r1919 150 150 { 151 151 glLoadIdentity(); 152 gluLookAt(0.0, -14.0 + primitiveMove, 15.0, 0.0, 0.0 + primitiveMove, 0.0, 0.0, 1.0, 0.0);152 gluLookAt(0.0, -14.0 + DataTank::yOffset, 15.0, 0.0, 0.0 + DataTank::yOffset, 0.0, 0.0, 1.0, 0.0); 153 153 /* first draw all players */ 154 154 playerList* tmpPlayer = lastPlayer; … … 167 167 } 168 168 169 170 //glPushMatrix();171 //glTranslatef(0.0, -primitiveMove, 0.0);172 169 173 170 /* now draw the rest of the world: environement */ … … 206 203 glEnd(); 207 204 208 209 primitiveMove+=0.07; 205 //primitiveMove+=0.07; 206 DataTank::yOffset += 0.07; 207 208 tmpPlayer = lastPlayer; 209 while( tmpPlayer != null ) 210 { 211 tmpPlayer->player->yCor += 0.07; 212 tmpPlayer = tmpPlayer->next; 213 } 214 215 210 216 } 211 217
Note: See TracChangeset
for help on using the changeset viewer.