summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2018-11-20 14:15:18 +0100
committerNao Pross <naopross@thearcway.org>2018-11-20 14:15:18 +0100
commita2d0912207a65b5b263e2b064b5e112d0c83acec (patch)
treed64f18718b47ca660f154db382c3d1c738c82236
parentSuppress serialVersionUID warning (diff)
downloadSubconscious-java-a2d0912207a65b5b263e2b064b5e112d0c83acec.tar.gz
Subconscious-java-a2d0912207a65b5b263e2b064b5e112d0c83acec.zip
Make x y members of Tile public
Diffstat (limited to '')
-rw-r--r--src/subconscious/Tile.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/subconscious/Tile.java b/src/subconscious/Tile.java
index 2678043..79a8a83 100644
--- a/src/subconscious/Tile.java
+++ b/src/subconscious/Tile.java
@@ -7,8 +7,7 @@ public class Tile {
CLEAR, GRASS, WATER, MOUNTAIN, NONE
};
- // TODO: make public
- private final int x, y;
+ public final int x, y;
// TODO: make final
private Type type;
// TODO: refractor to inRange;
@@ -67,6 +66,7 @@ public class Tile {
this.distance = distance;
}
+ // TODO: remove actor?
public double getCost(Actor actor) {
return this.cost;
}