Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Grid::extractArray( int** arr )
- {
- for(int i = 0; i < xGrid ; ++i) {
- for (int j = 0; j < yGrid ; ++j) {
- squares[i][j] = arr[i][j];
- }
- }
- }
- void Grid::extractArray( const Piece & piece)
- {
- for(int i = 0; i < piece.xGrid ; ++i) {
- for (int j = 0; j < piece.yGrid ; ++j) {
- squares[i][j] = arr[i][j];
- }
- }
- }
Add Comment
Please, Sign In to add comment