- Timestamp:
- May 26, 2016, 3:13:51 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentationFS16/src/modules/hover/HoverShip.cc
r11041 r11199 33 33 #include "core/CoreIncludes.h" 34 34 #include "core/XMLPort.h" 35 #include "Hover.h" 36 //#include "NewHumanController.h" 35 37 36 38 #include <BulletCollision/NarrowPhaseCollision/btManifoldPoint.h> … … 112 114 if (bBoost && this->isFloor_) 113 115 { 116 114 117 this->setVelocity( 115 118 this->getVelocity().x, … … 120 123 } 121 124 } 125 126 Hover* HoverShip::getGame() 127 { 128 if (game == nullptr) 129 { 130 for (Hover* hover : ObjectList<Hover>()) 131 game = hover; 132 } 133 return game; 134 } 135 136 void HoverShip::death() 137 { 138 getGame()->costLife(); 139 SpaceShip::death(); 140 } 122 141 }
Note: See TracChangeset
for help on using the changeset viewer.