I am trying to create a deck of cards That I am going to be choosing from to make a map. I have 16 cards, that are of two different types.
I first have my class with an enum :
package Game;
public class Terrain {
public static enum Ter{
DESERT, MOUNTAIN
}
}
And now I have a class Map:
package Game;
import Game.Terrain.Ter;
public class Map {
Ter mapPieces[] = {Ter.DESERT, Ter.DESERT, Ter.DESERT, Ter.DESERT,
Ter.DESERT, Ter.DESERT, Ter.DESERT, Ter.DESERT,
Ter.MOUNTAIN, Ter.MOUNTAIN, Ter.MOUNTAIN, Ter.MOUNTAIN,
Ter.MOUNTAIN, Ter.MOUNTAIN, Ter.MOUNTAIN, Ter.MOUNTAIN};
}
Is this how I make my array? Is there a better way to do this? It just looks horrible....