public VCube(Cube cube, bool generateDirs = false) : base(cube) { Axial = cube.ToAxial(); if (generateDirs) { GenerateDirs(); } }
public void Scale(int direction, int distance) { for (int i = 0; i < distance; i++) { Axial = Dirs[direction].Axial; var cube = Axial.ToCube(); X = cube.X; Y = cube.Y; Z = cube.Z; GenerateDirs(); } }
public List<BMapCell> GetCellsInRange(Axial c, int n) { var result = new List<BMapCell>(); var circle = c.GetInRange(n); for (int i = 0; i < circle.Count; i++) for (int j = 0; j < _notNullCells.Length; j++) if (circle[i] == _notNullCells[j].Axial) { result.Add(_notNullCells[j]); break; } return result; }
public Axial(Axial s) { Q = s.Q; R = s.R; }
public bool IsCell(Axial axial) { return IsCell(axial.Q, axial.R); }
public BMapCell Cell(Axial position) { return Cells[position.Q, position.R]; }
public BMapCell(int q, int r) { Axial = new Axial(q, r); Cube = new Cube(Axial); }
public Unit(Unit unit, Axial startPos, int teamId) : this(unit) { StartPos = startPos; TeamId = teamId; }