Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 2, 2019, 3:52:29 PM (6 years ago)
Author:
ahuwyler
Message:

jetzt mehrere Bloecke

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

Legend:

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

    r12331 r12332  
    224224
    225225    void OrxoBlox::createWall(void){
     226        orxout() <<"Hello idiot1"<< endl;
     227
    226228        this->futureWall_ = new OrxoBloxWall(this->center_->getContext());
    227229        // Apply the stone template to the stone.
  • code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBloxWall.cc

    r12331 r12332  
    1919        RegisterObject(OrxoBloxWall);
    2020
    21         this->num_Stones_ = 1 + static_cast<unsigned int>(rnd(6.0f)); //<! random number between 0 and 7;
     21        this->num_Stones_ = 2;//1 + static_cast<unsigned int>(rnd(6.0f)); //<! random number between 0 and 7;
     22        this->size_ = 10.0f;
    2223        this->delay_ = false;
    2324        this->orxoblox_ = this->getOrxoBlox();
     
    2728
    2829    void OrxoBloxWall::createWall(void){
    29 
     30        orxout() <<"Hello idiot"<< endl;
    3031        for (unsigned int i=0; i<this->num_Stones_;++i){
     32            orxout() <<i<< endl;
    3133            OrxoBloxStones* stone = new OrxoBloxStones(this->getContext());
    32 
    33 
    3434            this->TotalStones_.push_back(stone);
    3535            this->attach(stone);
    36            
    37             stone->setPosition(0.0f, i, 0.0f);
     36            stone->setPosition(size_*i, 0, 0.0f);
    3837
    3938
  • code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBloxWall.h

    r12331 r12332  
    4747            unsigned int totalhealth_;
    4848            unsigned int num_Stones_;
     49            unsigned int size_;
    4950            std::vector<OrxoBloxStones*> TotalStones_; //!< A list of all stones in a Wall.
    5051            bool delay_;
Note: See TracChangeset for help on using the changeset viewer.