Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 11, 2012, 3:53:43 PM (12 years ago)
Author:
jo
Message:

Trying to create tetris bricks. Rough implementation done. Still having a nasty camera bug. (see the debug output concerning the cameraIndex)

File:
1 edited

Legend:

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

    r8706 r9082  
    6868
    6969            PlayerInfo* getPlayer(void) const; //!< Get the player.
     70            WeakPtr<TetrisCenterpoint> getCenterpoint(void)
     71                { return this->center_; }
    7072
    7173            bool isValidMove(TetrisStone* stone, const Vector3& position);
     74            bool isValidMove(TetrisBrick* brick, const Vector3& position);
    7275
    7376        protected:
     
    7578
    7679        private:
    77             void startStone(void); //!< Starts with the first stone.
    78             void createStone(void);
     80            void startBrick(void);
     81            void createBrick(void);
    7982            void cleanup(void); //!< Cleans up the Gametype by destroying the ball and the bats.
    8083            bool isValidStonePosition(TetrisStone* stone, const Vector3& position);
     84            bool isValidBrickPosition(TetrisBrick* brick, const Vector3& position);
    8185           
    8286            PlayerInfo* player_;
    8387
    8488            WeakPtr<TetrisCenterpoint> center_; //!< The playing field.
     89            std::vector<TetrisBrick*> bricks_; //!< A list of all bricks in play.
    8590            std::vector<TetrisStone*> stones_; //!< A list of all stones in play.
    8691            std::vector< std::vector<bool> > grid_;
    87             TetrisStone* activeStone_;
     92            TetrisBrick* activeBrick_;
    8893           
    8994            Timer starttimer_; //!< A timer to delay the start of the game.
Note: See TracChangeset for help on using the changeset viewer.