示例#1
0
文件: HexCell.cs 项目: 42kun/hexagon
 public HexEdgeType GetEdgeType(HexCell c)
 {
     return(HexMetrics.GetHexEdgeType(Elevation, c.Elevation));
 }
示例#2
0
文件: HexCell.cs 项目: 42kun/hexagon
 //获取边界类型
 public HexEdgeType GetEdgeType(HexDirection d)
 {
     return(HexMetrics.GetHexEdgeType(
                elevation,
                neighbors[(int)d].Elevation));
 }