Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 12280 for code


Ignore:
Timestamp:
Apr 4, 2019, 4:26:09 PM (5 years ago)
Author:
ahuwyler
Message:

better now

Location:
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox
Files:
2 edited

Legend:

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

    r12278 r12280  
    6767        this->ball_ = nullptr;
    6868        this->bat_[0] = nullptr;
     69        this->futureWall_ = nullptr;
    6970
    7071        //this->setHUDTemplate("pongHUD");
     
    280281    /*void OrxoBlox::createStonewall(void){
    281282        this->futureWall_ = new OrxoBolxWall(this->center_->getContext());
    282 
    283 
     283    }
     284
     285    /*void Tetris::createBrick(void)             //TODO: random rotation offset between 0 and 3 (times 90°)
     286    {
     287        // create new futureBrick_
     288        this->futureBrick_ = new TetrisBrick(this->center_->getContext());
     289
     290
     291        // Apply the stone template to the stone.
     292        this->futureBrick_->addTemplate(this->center_->getBrickTemplate());
     293
     294        // Attach the brick to the Centerpoint and set the position of the brick to be at the left side.
     295        this->center_->attach(this->futureBrick_);
     296        float xPos = (this->center_->getWidth()*1.6f + ((this->center_->getWidth() % 2)*2-1)/2.0f)*this->center_->getStoneSize();
     297        float yPos = (this->center_->getHeight()-5.1f)*this->center_->getStoneSize();
     298       
     299        this->futureBrick_->setPosition(xPos, yPos, 0.0f);
     300        this->futureBrick_->setGame(this);
     301    }
    284302
    285303    }*/
  • code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBlox.h

    r12268 r12280  
    9696            Timer starttimer_; //!< A timer to delay the start of the game.
    9797            int scoreLimit_; //!< If a player scored that much points, the game is ended.
     98            WeakPtr<OrxoBloxWall> futureWall_;
    9899    };
    99100}
Note: See TracChangeset for help on using the changeset viewer.