Changeset 2058 in orxonox.OLD for orxonox/branches/chris/src/world.cc
- Timestamp:
- Jul 2, 2004, 11:36:56 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/chris/src/world.cc
r1982 r2058 15 15 */ 16 16 17 #include <iostream> 18 #include <stdlib.h> 19 #include <cmath> 20 #include <GL/glut.h> 21 22 #include "npc.h" 23 #include "player.h" 24 #include "environment.h" 25 #include "shoot_laser.h" 26 #include "shoot_rocket.h" 27 #include "stdincl.h" 28 #include "data_tank.h" 17 29 18 30 #include "world.h" 19 31 20 #include <iostream>21 32 22 33 using namespace std; … … 174 185 void World::drawWorld(void) 175 186 { 187 176 188 glLoadIdentity(); 177 189 gluLookAt(0.0, -14.0 + DataTank::yOffset, 15.0, 0.0, 0.0 + DataTank::yOffset, 0.0, 0.0, 1.0, 0.0); … … 181 193 while( tmpPlayer != null ) 182 194 { 183 (*tmpPlayer->player).drawPlayer();195 tmpPlayer->player->paint(); 184 196 tmpPlayer = tmpPlayer->next; 185 197 } … … 188 200 while( tmpNPC != null ) 189 201 { 190 (*tmpNPC->npc). drawNPC();202 (*tmpNPC->npc).paint(); 191 203 tmpNPC = tmpNPC->next; 192 204 } … … 235 247 } 236 248 237 249 238 250 } 239 251 … … 254 266 void World::setWorldStep(float step) 255 267 { 268 //cout << "World::setWorldStep(" << step << ");" << endl; 256 269 this->step = step; 257 cout << "setting speed to " << step << endl;270 //cout << "setting speed to " << step << endl; 258 271 } 259 272
Note: See TracChangeset
for help on using the changeset viewer.