Maps are more generic as well as cells.

This commit is contained in:
2020-12-10 20:34:45 -07:00
parent 7f0cb10198
commit d725372ffb
14 changed files with 121 additions and 94 deletions

View File

@@ -5,15 +5,15 @@ namespace ConsoleApp.Maps
{
public struct HexCell : IHexCell
{
public int Q { get; }
public int R { get; }
public int S { get; }
public int X { get; }
public int Y { get; }
public int Z { get; }
public HexCell(int q, int r, int s)
{
if (q + r + s != 0) throw new ArgumentException("q + r + s must be 0");
Q = q;
R = r;
S = s;
X = q;
Y = r;
Z = s;
}
}