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; } }