Changeset 9082 for code/branches/pCuts/src/modules/tetris/Tetris.h
- Timestamp:
- Apr 11, 2012, 3:53:43 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pCuts/src/modules/tetris/Tetris.h
r8706 r9082 68 68 69 69 PlayerInfo* getPlayer(void) const; //!< Get the player. 70 WeakPtr<TetrisCenterpoint> getCenterpoint(void) 71 { return this->center_; } 70 72 71 73 bool isValidMove(TetrisStone* stone, const Vector3& position); 74 bool isValidMove(TetrisBrick* brick, const Vector3& position); 72 75 73 76 protected: … … 75 78 76 79 private: 77 void start Stone(void); //!< Starts with the first stone.78 void create Stone(void);80 void startBrick(void); 81 void createBrick(void); 79 82 void cleanup(void); //!< Cleans up the Gametype by destroying the ball and the bats. 80 83 bool isValidStonePosition(TetrisStone* stone, const Vector3& position); 84 bool isValidBrickPosition(TetrisBrick* brick, const Vector3& position); 81 85 82 86 PlayerInfo* player_; 83 87 84 88 WeakPtr<TetrisCenterpoint> center_; //!< The playing field. 89 std::vector<TetrisBrick*> bricks_; //!< A list of all bricks in play. 85 90 std::vector<TetrisStone*> stones_; //!< A list of all stones in play. 86 91 std::vector< std::vector<bool> > grid_; 87 Tetris Stone* activeStone_;92 TetrisBrick* activeBrick_; 88 93 89 94 Timer starttimer_; //!< A timer to delay the start of the game.
Note: See TracChangeset
for help on using the changeset viewer.