//**************************************************************************************************************/ private bool hasArrow(Cell cell) { foreach (Cell c in p_arrows) { if (c.Equals(cell)) { return true; } } return false; }
public void removeArrow(Cell cell, Gameboard gameboard) { if(p_arrows.Contains(cell)) { gameboard.updateTile(cell.getPositionY(), cell.getPositionX(), Variables.Direction.None, Tile.cellBorder); p_arrows.Remove(cell); cell.setOwnedBy(0); } }