- Timestamp:
- Nov 12, 2014, 3:58:59 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/surfaceraceHS14/src/modules/dodgerace2/DodgeRaceShip.cc
r10117 r10118 34 34 #include "DodgeRaceShip.h" 35 35 36 #include "core/CoreIncludes.h"37 #include "core/XMLPort.h"38 //#include "DodgeRace.h"39 40 36 namespace orxonox 41 37 { … … 49 45 isFireing = false; 50 46 damping = 10; 47 48 lastTimeFront = 0; 49 lastTimeLeft = 0; 50 lastTime = 0; 51 51 } 52 52 … … 106 106 setPosition(pos); 107 107 setOrientation(Vector3::UNIT_Y, Degree(270)); 108 108 /* 109 109 // Level up! 110 110 if (pos.x > 42000) … … 113 113 setPosition(Vector3(0, 0, pos.z)); // pos - Vector3(30000, 0, 0) 114 114 } 115 115 */ 116 116 SUPER(DodgeRaceShip, tick, dt); 117 117 } … … 139 139 isFireing = bBoost; 140 140 } 141 /* inline bool DodgeRaceShip::collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint) 141 /* 142 inline bool DodgeRaceShip::collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint) 142 143 { 143 144 // orxout() << "touch!!! " << endl; //<< otherObject << " at " << contactPoint; … … 169 170 return false; 170 171 // SUPER(DodgeRaceShip, collidesAgainst, otherObject, contactPoint); 171 } */172 172 } 173 */ 173 174 WeakPtr<DodgeRace> DodgeRaceShip::getGame() 174 175 { … … 176 177 { 177 178 for (ObjectList<DodgeRace>::iterator it = ObjectList<DodgeRace>::begin(); it != ObjectList<DodgeRace>::end(); ++it) 178 game = *it; 179 { 180 game = *it; 181 } 179 182 } 180 183 return game; 181 184 } 182 185 /* 183 186 void DodgeRaceShip::death() 184 187 { 185 188 getGame()->costLife(); 186 189 SpaceShip::death(); 187 } 190 }*/ 188 191 }
Note: See TracChangeset
for help on using the changeset viewer.