Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 3, 2014, 1:50:22 PM (10 years ago)
Author:
landauf
Message:

replaced tabs with spaces. no changes in code

File:
1 edited

Legend:

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

    r9803 r9945  
    8787                    stone->addTemplate(this->tetris_->getCenterpoint()->getStoneTemplate());
    8888                else
    89                         orxout()<< "tetris_->getCenterpoint == NULL in TetrisBrick.cc"<< endl;
     89                    orxout()<< "tetris_->getCenterpoint == NULL in TetrisBrick.cc"<< endl;
    9090            }
    9191            else
     
    116116            if(this->shapeIndex_ == 1 || this->shapeIndex_ == 6 || this->shapeIndex_ == 7)
    117117            {
    118                 stone->setPosition(0.0f, 2*size_, 0.0f);
     118                stone->setPosition(0.0f, 2*size_, 0.0f);
    119119            }
    120120            else if(this->shapeIndex_ == 3 || this->shapeIndex_ == 4|| this->shapeIndex_ == 5)
    121121            {
    122                 stone->setPosition(size_, 0, 0.0f);
     122                stone->setPosition(size_, 0, 0.0f);
    123123            }
    124124            else if(this->shapeIndex_ == 2)
    125125            {
    126                 stone->setPosition(-size_, 0, 0.0f);
     126                stone->setPosition(-size_, 0, 0.0f);
    127127            }
    128128        }
     
    131131            if(this->shapeIndex_ == 2 || this->shapeIndex_ == 5)
    132132            {
    133                 stone->setPosition(size_, size_, 0.0f);
     133                stone->setPosition(size_, size_, 0.0f);
    134134            }
    135135            else if(this->shapeIndex_ == 1)
    136136            {
    137                 stone->setPosition(0, 3*size_, 0.0f);
     137                stone->setPosition(0, 3*size_, 0.0f);
    138138            }
    139139            else if(this->shapeIndex_ == 3 || this->shapeIndex_ == 7)
    140140            {
    141                 stone->setPosition(-size_, 0, 0.0f);
     141                stone->setPosition(-size_, 0, 0.0f);
    142142            }
    143143            else if(this->shapeIndex_ == 4)
    144144            {
    145                 stone->setPosition(-size_, size_, 0.0f);
     145                stone->setPosition(-size_, size_, 0.0f);
    146146            }
    147147            else if(this->shapeIndex_ == 6)
    148148            {
    149                 stone->setPosition(size_, 0, 0.0f);
     149                stone->setPosition(size_, 0, 0.0f);
    150150            }
    151151        }
     
    154154    bool TetrisBrick::isValidMove(const Vector3& position, bool isRotation = false)
    155155    {
    156         return this->tetris_->isValidMove(this,position, isRotation);
     156        return this->tetris_->isValidMove(this,position, isRotation);
    157157    }
    158158
    159159    TetrisStone* TetrisBrick::getStone(unsigned int i)
    160160    {
    161         if(i < this->brickStones_.size())
     161        if(i < this->brickStones_.size())
    162162            return this->brickStones_[i];
    163         else return NULL;
     163        else return NULL;
    164164    }
    165165
     
    192192        else if(!this->lockRotation_) //rotate when key up is pressed
    193193        {
    194                 if(!isValidMove(this->getPosition(), true)) //catch illegal rotations
    195                     return;
     194            if(!isValidMove(this->getPosition(), true)) //catch illegal rotations
     195                return;
    196196            this->lockRotation_ = true; // multiple calls of this function have to be filtered out.
    197197            this->rotationTimer_.setTimer(0.1f, false, createExecutor(createFunctor(&TetrisBrick::unlockRotation, this)));
Note: See TracChangeset for help on using the changeset viewer.