blob: 4ced8c8aa2aa08228d6e5aac2debe1496ee834eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
public class Tile {
public enum Type {
GRASS, WATER
};
public final int x, y;
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;
}
}
|