示例#1
0
    public static String GetName(this HexTerrainTypes type)
    {
        switch (type)
        {
        case HexTerrainTypes.Flat:
            return("Flat");

        case HexTerrainTypes.Hill:
            return("Hill");

        case HexTerrainTypes.Lake:
            return("Lake");

        case HexTerrainTypes.Road:
            return("Road");

        case HexTerrainTypes.Forest:
            return("Forest");

        default:
            return("Flat");
        }
    }
示例#2
0
 public HexCell()
 {
     _terrainType = HexTerrainTypes.Flat;
     _cellID      = Guid.NewGuid();
 }