enum LocationType { // can only contain 4 types TARGET, ENEMY, MAP_LOW, MAP_HIGH, ; static final LocationType[] values = LocationType.values(); }
@Override public String toString() { return type.toString() + " " + x + " " + y; }