public class Tile { public enum Type { GRASS, WATER }; public final int x, y; public final Type type; public Tile(Type type, int x, int y) { this.type = type; this.x = x; this.y = y; } }