Changeset 10659 for code/branches/hoverHS15/src/modules/hover/HoverShip.cc
- Timestamp:
- Oct 19, 2015, 2:40:08 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hoverHS15/src/modules/hover/HoverShip.cc
r10657 r10659 21 21 * 22 22 * Author: 23 * Florian Zinggeler23 * Cyrill Burgener 24 24 * Co-authors: 25 25 * ... … … 28 28 29 29 /** 30 @file DodgeRaceShip.cc31 @brief Implementation of the DodgeRaceShip class.30 @file HoverShip.cc 31 @brief Implementation of the HoverShip class. 32 32 */ 33 33 34 #include " DodgeRaceShip.h"34 #include "HoverShip.h" 35 35 #include "core/CoreIncludes.h" 36 36 37 37 namespace orxonox 38 38 { 39 RegisterClass( DodgeRaceShip);39 RegisterClass(HoverShip); 40 40 41 DodgeRaceShip::DodgeRaceShip(Context* context) : SpaceShip(context)41 HoverShip::HoverShip(Context* context) : SpaceShip(context) 42 42 { 43 RegisterObject( DodgeRaceShip);43 RegisterObject(HoverShip); 44 44 45 45 speed = 830; … … 53 53 } 54 54 55 void DodgeRaceShip::tick(float dt)55 void HoverShip::tick(float dt) 56 56 { 57 57 Vector3 pos = getPosition(); … … 115 115 } 116 116 117 SUPER( DodgeRaceShip, tick, dt);117 SUPER(HoverShip, tick, dt); 118 118 } 119 119 120 void DodgeRaceShip::updateLevel()120 void HoverShip::updateLevel() 121 121 { 122 122 lastTime = 0; … … 125 125 } 126 126 127 void DodgeRaceShip::moveFrontBack(const Vector2& value)127 void HoverShip::moveFrontBack(const Vector2& value) 128 128 { 129 129 //lastTimeFront = 0; … … 132 132 } 133 133 134 void DodgeRaceShip::moveRightLeft(const Vector2& value)134 void HoverShip::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 HoverShip::boost(bool bBoost) 140 140 { 141 141 //getGame()->bEndGame = bBoost; 142 142 } 143 143 144 inline bool DodgeRaceShip::collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint)144 inline bool HoverShip::collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint) 145 145 { 146 146 … … 150 150 } 151 151 152 DodgeRace* DodgeRaceShip::getGame()152 Hover* HoverShip::getGame() 153 153 { 154 154 if (game == NULL) 155 155 { 156 for (ObjectList< DodgeRace>::iterator it = ObjectList<DodgeRace>::begin(); it != ObjectList<DodgeRace>::end(); ++it)156 for (ObjectList<Hover>::iterator it = ObjectList<Hover>::begin(); it != ObjectList<Hover>::end(); ++it) 157 157 { 158 158 game = *it; … … 162 162 } 163 163 164 void DodgeRaceShip::death()164 void HoverShip::death() 165 165 { 166 166 getGame()->costLife();
Note: See TracChangeset
for help on using the changeset viewer.