Ejemplo n.º 1
0
 public Hex(Enums.TerrainType terrain, Enums.HexType hexType) : base(terrain)
 {
     this.vertices = new List <Vertex>();
     if (terrain == Enums.TerrainType.WATER)
     {
         this.hexType = Enums.HexType.WATER;
     }
     else if (hexType == Enums.HexType.WATER)
     {
         this.hexType = Enums.HexType.DESERT;
     }
     else
     {
         this.hexType = hexType;
     }
 }
Ejemplo n.º 2
0
 public BoardPiece(Enums.TerrainType terrain)
 {
     this.terrainType = terrain;
 }
Ejemplo n.º 3
0
 public Vertex(Enums.TerrainType terrain) : base(terrain)
 {
     this.hasWall           = false;
     this.visited           = 0;
     this.neighbouringEdges = new List <Edge> ();
 }