- Timestamp:
- Mar 29, 2018, 3:30:24 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/OrxyRoad_FS18/src/modules/orxyroad/OrxyRoadRaceShip.cc
r11836 r11838 28 28 29 29 /** 30 @file DodgeRaceShip.cc31 @brief Implementation of the DodgeRaceShip class.30 @file OrxyRoadShip.cc 31 @brief Implementation of the OrxyRoadShip class. 32 32 */ 33 33 34 #include " DodgeRaceShip.h"34 #include "OrxyRoadShip.h" 35 35 #include "core/CoreIncludes.h" 36 36 37 37 namespace orxonox 38 38 { 39 RegisterClass( DodgeRaceShip);39 RegisterClass(OrxyRoadShip); 40 40 41 DodgeRaceShip::DodgeRaceShip(Context* context) : SpaceShip(context)41 OrxyRoadShip::OrxyRoadShip(Context* context) : SpaceShip(context) 42 42 { 43 RegisterObject( DodgeRaceShip);43 RegisterObject(OrxyRoadShip); 44 44 45 45 speed = 830; … … 53 53 } 54 54 55 void DodgeRaceShip::tick(float dt)55 void OrxyRoadShip::tick(float dt) 56 56 { 57 57 Vector3 pos = getPosition(); … … 115 115 } 116 116 117 SUPER( DodgeRaceShip, tick, dt);117 SUPER(OrxyRoadShip, tick, dt); 118 118 } 119 119 120 void DodgeRaceShip::updateLevel()120 void OrxyRoadShip::updateLevel() 121 121 { 122 122 lastTime = 0; … … 125 125 } 126 126 127 void DodgeRaceShip::moveFrontBack(const Vector2& value)127 void OrxyRoadShip::moveFrontBack(const Vector2& value) 128 128 { 129 129 //lastTimeFront = 0; … … 132 132 } 133 133 134 void DodgeRaceShip::moveRightLeft(const Vector2& value)134 void OrxyRoadShip::moveRightLeft(const Vector2& value) 135 135 { 136 136 lastTimeLeft = 0; 137 137 desiredVelocity.x = value.x * speed; 138 138 } 139 void DodgeRaceShip::boost(bool bBoost)139 void OrxyRoadShip::boost(bool bBoost) 140 140 { 141 141 //getGame()->bEndGame = bBoost; 142 142 } 143 143 144 inline bool DodgeRaceShip::collidesAgainst(WorldEntity* otherObject, const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint)144 inline bool OrxyRoadShip::collidesAgainst(WorldEntity* otherObject, const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint) 145 145 { 146 146 … … 150 150 } 151 151 152 DodgeRace* DodgeRaceShip::getGame()152 OrxyRoad* OrxyRoadShip::getGame() 153 153 { 154 154 if (game == nullptr) 155 155 { 156 for ( DodgeRace* race : ObjectList<DodgeRace>())156 for (OrxyRoad* race : ObjectList<OrxyRoad>()) 157 157 { 158 158 game = race; … … 162 162 } 163 163 164 void DodgeRaceShip::death()164 void OrxyRoadShip::death() 165 165 { 166 166 getGame()->costLife();
Note: See TracChangeset
for help on using the changeset viewer.