private void Move(HexCell.Directions direction) { List <HexCell> directionalEdges = directionEdgeCells[(int)direction]; foreach (var cell in directionalEdges) { cell.MoveHamster(direction); } }
public void Move(HexCell.Directions direction) { if (_hexCell != null) { var cell = _hexCell.GetNeighbour(direction); if (cell == null || !cell.CanSpawnHamster()) { return; } _hexCell.HamsterLeft(); cell.SpawnHamster(this); } }
public void RemoveCellFromDirectionEdges(HexCell cell, HexCell.Directions directions) { directionEdgeCells[(int)directions].Remove(cell); }
public void СellBecameDirectionEdge(HexCell cell, HexCell.Directions direction) { directionEdgeCells[(int)direction].Add(cell); }