enum LocationType { // can only contain 4 types TARGET, ENEMY, MAP_LOW, MAP_HIGH, ; static final LocationType[] values = LocationType.values(); }