Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 12, 2012, 7:05:57 PM (12 years ago)
Author:
jo
Message:

Rotating bricks works. Next step: repairing the collision detection.

File:
1 edited

Legend:

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

    r9082 r9084  
    6161            virtual void changedPlayer(); //!< Is called when the player changed.
    6262
    63             bool isValidMove(Vector3& position);
     63            bool isValidMove(const Vector3& position, bool isRotation);
    6464            unsigned int getNumberOfStones(void) const
    6565                { return this->brickStones_.size(); }
     
    6969            void setGame(Tetris* tetris)
    7070                { assert(tetris); tetris_ = tetris; }
     71            unsigned int getRotationCount(void)
     72                { return this->rotationCount_;}
    7173
    7274        protected:
     
    9395            bool lockRotation_;
    9496
     97            unsigned int rotationCount_; //!< Stores the bricks orientation
    9598            Timer delayTimer_;
    9699            Timer rotationTimer_; ///!< This timer is used to filter out multiple rotation inputs.
Note: See TracChangeset for help on using the changeset viewer.