aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/Tile.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/Tile.java')
-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;
+ }
}