- Timestamp:
- Feb 17, 2018, 11:06:06 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Presentation_HS17_merge/src/modules/flappyorx/FlappyOrx.cc
r11755 r11757 48 48 #include "infos/PlayerInfo.h" 49 49 50 #include "FlappyOrxCenterPoint.h"51 50 #include "FlappyOrxShip.h" 52 51 … … 62 61 { 63 62 RegisterObject(FlappyOrx); 64 this->center_ = nullptr; 63 65 64 point = 0; //number of cleared tubes 66 65 bIsDead = true; … … 158 157 //Create a new Asteroid 159 158 void FlappyOrx::createAsteroid(Circle &c){ 160 MovableEntity* newAsteroid = new MovableEntity( this->center_->getContext());159 MovableEntity* newAsteroid = new MovableEntity(player->getContext()); 161 160 162 161 //Add Model fitting the Size of the Asteroid … … 219 218 } 220 219 221 void FlappyOrx::setCenterpoint(FlappyOrxCenterPoint* center){222 this->center_ = center;223 }224 225 220 bool FlappyOrx::isDead(){ 226 221 return bIsDead; … … 240 235 this->bForceSpawn_ = true; 241 236 242 if (this->center_ == nullptr) // abandon mission!243 {244 orxout(internal_error) << "FlappyOrx: No Centerpoint specified." << endl;245 GSLevel::startMainMenu();246 return;247 }248 237 // Call start for the parent class. 249 238 Deathmatch::start();
Note: See TracChangeset
for help on using the changeset viewer.