Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 9, 2019, 1:33:42 PM (5 years ago)
Author:
ahuwyler
Message:

cleanup active Walls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBlox.cc

    r12346 r12349  
    109109        if (this->futureWall_)
    110110            {
    111                 this->futureWall_->destroy();
    112                 this->futureWall_ = nullptr;
    113             }
     111            this->futureWall_->destroy();
     112            this->futureWall_ = nullptr;
     113            }
     114
     115        for (OrxoBloxWall* wall : this->activeWalls_)
     116            wall->destroy();
     117        this->activeWalls_.clear();
     118       
    114119
    115120        for (OrxoBloxStones* stone : this->stones_)
     
    147152
    148153            // Create the first Wall.
    149             this->createWall();
     154            this->LevelUp();
    150155
    151156            //Create Ship
     
    212217        level_++;
    213218        this->createWall();
     219
     220        for(OrxoBloxWall* Wall : this->activeWalls_){
     221            int x_=(Wall->getPosition()).x;
     222            orxout()<<x_<<endl;
     223            Wall->setPosition(0,0,x_+10.0f);
     224        }
     225
    214226        this->activeWalls_.push_back(this->futureWall_);
     227
     228
    215229        for (int i = 0; i < this->futureWall_->getNumberOfStones(); i++)
    216230            this->stones_.push_back(this->futureWall_->getStone(i));
     
    244258    }
    245259
    246     OrxoBloxStones* OrxoBlox::CheckForCollision(OrxoBloxBall* Ball) {
     260    /*OrxoBloxStones* OrxoBlox::CheckForCollision(OrxoBloxBall* Ball) {
    247261
    248262        orxout() << "Checking for Collision" << endl;
     
    261275        orxout() << "Found nothing...." << endl;
    262276        return nullptr;
    263     }
     277    }*/
    264278   
    265279}
Note: See TracChangeset for help on using the changeset viewer.