예제 #1
0
파일: Hex.cs 프로젝트: sorinmuchi/Settlers
 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;
     }
 }
예제 #2
0
 public BoardPiece(Enums.TerrainType terrain)
 {
     this.terrainType = terrain;
 }
예제 #3
0
 public Vertex(Enums.TerrainType terrain) : base(terrain)
 {
     this.hasWall           = false;
     this.visited           = 0;
     this.neighbouringEdges = new List <Edge> ();
 }