aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/Tile.java
diff options
context:
space:
mode:
authormafaldo <mafaldo@heavyhammer.home>2018-02-10 21:42:50 +0100
committermafaldo <mafaldo@heavyhammer.home>2018-02-10 21:42:50 +0100
commit1987f42e5554996e5f765612bbcdc0737e108e12 (patch)
tree2f7f1538f272691c27d81ae21dc1c9493689f301 /src/main/java/Tile.java
parentAdd simple mouseclick listener to scenes (diff)
downloadSubconscious-old-1987f42e5554996e5f765612bbcdc0737e108e12.tar.gz
Subconscious-old-1987f42e5554996e5f765612bbcdc0737e108e12.zip
tiles bound to actors, remove Player and Enemy
Diffstat (limited to '')
-rw-r--r--src/main/java/Tile.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/Tile.java b/src/main/java/Tile.java
index a5e0daa..4ced8c8 100644
--- a/src/main/java/Tile.java
+++ b/src/main/java/Tile.java
@@ -8,10 +8,23 @@ public class Tile {
public final Type type;
public boolean selected = false;
+ private Actor actor = null;
public Tile(Type type, int x, int y) {
this.type = type;
this.x = x;
this.y = y;
}
+
+ public void setActor(Actor actor) {
+ this.actor = actor;
+ }
+
+ public Actor getActor() {
+ return actor;
+ }
+
+ public void clearActor() {
+ this.actor = null;
+ }
}