Exemple #1
0
 public bool Equals(HexCoords other) => (q, r) == (other.q, other.r);
Exemple #2
0
 public static int Distance(HexCoords a, HexCoords b)
 {
     return((a - b).Length());
 }
Exemple #3
0
 public int Distance(Hex other)
 {
     return(HexCoords.Distance(coords, other.coords));
 }
Exemple #4
0
 public Hex(HexCoords coords)
 {
     this.coords = coords;
 }
Exemple #5
0
 public bool Contains(HexCoords coords)
 {
     return(AllowedCoordinates.Contains(coords));
 }