Browse Source

getPatch, setPatch

master
Josh Hofing 11 years ago
parent
commit
5d7731e208
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      src/Grid.java

+ 8
- 0
src/Grid.java View File

@@ -18,6 +18,14 @@ public class Grid {
}
}

public Patch getPatch (int x, int y) {
return _grid[x][y];
}

public void setPatch (int x, int y, Patch p) {
_grid[x][y] = p;
}

public String toString() {
String ans = "";
for(int i = 0; i < _grid.length; i++) {


Loading…
Cancel
Save