diff options
author | mafaldo <mafaldo@heavyhammer.home> | 2018-02-10 21:42:50 +0100 |
---|---|---|
committer | mafaldo <mafaldo@heavyhammer.home> | 2018-02-10 21:42:50 +0100 |
commit | 1987f42e5554996e5f765612bbcdc0737e108e12 (patch) | |
tree | 2f7f1538f272691c27d81ae21dc1c9493689f301 /src/main/java/Tile.java | |
parent | Add simple mouseclick listener to scenes (diff) | |
download | Subconscious-old-1987f42e5554996e5f765612bbcdc0737e108e12.tar.gz Subconscious-old-1987f42e5554996e5f765612bbcdc0737e108e12.zip |
tiles bound to actors, remove Player and Enemy
Diffstat (limited to 'src/main/java/Tile.java')
-rw-r--r-- | src/main/java/Tile.java | 13 |
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; + } } |