Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 13, 2012, 5:44:29 PM (13 years ago)
Author:
jo
Message:

backup checkin - still the same bugs experiencable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pCuts/src/modules/tetris/TetrisBrick.cc

    r9084 r9085  
    5353        RegisterObject(TetrisBrick);
    5454
    55         this->shapeIndex_ = 1; //<! TODO: random number between 0 and 7
     55        this->shapeIndex_ = 4; //<! TODO: random number between 0 and 7
    5656        this->stonesPerBrick_ = 4; //<! most tetris bricks is formed by 4 stones
    5757        this->delay_ = false;
     
    241241        this->setVelocity(0.0f, 0.0f, 0.0f);
    242242    }
     243    /**
     244    @brief
     245        Attaches stones to the Centerpoint.
     246    */
     247    void TetrisBrick::releaseStones(TetrisCenterpoint* center)
     248    {
     249        for(unsigned int i = 0; i < brickStones_.size(); i++)
     250        {
     251            //this->brickStones_[i]->detachFromParent();
     252
     253            //this->brickStones_[i]->detach(this);
     254            //this->brickStones_[i]->attach(center);
     255        }
     256
     257    }
    243258
    244259}
Note: See TracChangeset for help on using the changeset viewer.