Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 17, 2018, 11:06:06 PM (7 years ago)
Author:
landauf
Message:

[FlappyOrx_HS17] removed FlappyOrxCenterPoint, it doesn't seem to be neede

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Presentation_HS17_merge/src/modules/flappyorx/FlappyOrx.cc

    r11755 r11757  
    4848#include "infos/PlayerInfo.h"
    4949
    50 #include "FlappyOrxCenterPoint.h"
    5150#include "FlappyOrxShip.h"
    5251
     
    6261    {
    6362        RegisterObject(FlappyOrx);
    64         this->center_ = nullptr;
     63
    6564        point = 0;                          //number of cleared tubes
    6665        bIsDead = true;
     
    158157    //Create a new Asteroid
    159158    void FlappyOrx::createAsteroid(Circle &c){
    160         MovableEntity* newAsteroid = new MovableEntity(this->center_->getContext());
     159        MovableEntity* newAsteroid = new MovableEntity(player->getContext());
    161160
    162161        //Add Model fitting the Size of the Asteroid
     
    219218    }
    220219
    221     void FlappyOrx::setCenterpoint(FlappyOrxCenterPoint* center){
    222         this->center_ = center;
    223     }
    224 
    225220    bool FlappyOrx::isDead(){
    226221        return bIsDead;
     
    240235        this->bForceSpawn_ = true;
    241236
    242         if (this->center_ == nullptr)  // abandon mission!
    243         {
    244             orxout(internal_error) << "FlappyOrx: No Centerpoint specified." << endl;
    245             GSLevel::startMainMenu();
    246             return;
    247         }
    248237        // Call start for the parent class.
    249238        Deathmatch::start();
Note: See TracChangeset for help on using the changeset viewer.