From 5d7731e20801a71ebfc8fcae48bf0af239644693 Mon Sep 17 00:00:00 2001 From: Josh Hofing Date: Mon, 14 Jan 2013 09:40:11 -0500 Subject: [PATCH] getPatch, setPatch --- src/Grid.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Grid.java b/src/Grid.java index 4eb28cb..1fd1052 100644 --- a/src/Grid.java +++ b/src/Grid.java @@ -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++) {