- Timestamp:
- Nov 5, 2014, 4:39:31 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/minigame4DHS14/src/modules/mini4Dgame/Mini4DgameCenterpoint.h
r10101 r10115 105 105 { return Vector3(this->width_, this->height_, this->length_); } 106 106 107 /** 108 @brief checks if the move is valid 109 @param the position where to put the stone plus the player who makes the move 110 */ 111 bool isValidMove(const Vector4 move,const int playerColor); 112 113 /** 114 @brief makes a move on the logic playboard 115 @param the position where to put the stone plus the player who makes the move 116 */ 117 void makeMove(const Vector4 move, const int player); 118 119 /** 120 @brief searches the board if somebody has won 121 @return the winner if somebody has won or mini4DgamePlayerColor::none if nobody has won so far 122 */ 123 mini4DgamePlayerColor::color Mini4DgameCenterpoint::getWinner() 107 124 108 125 private: … … 115 132 float height_; //!< The width of the playing field. 116 133 float length_; //!< The length of the playing field. 134 mini4DgamePlayerColor::color board[4][4][4][4]; //!< The logical board where the game takes place. board[row][column][height][number] 117 135 }; 118 136 }
Note: See TracChangeset
for help on using the changeset viewer.