Esempio n. 1
0
        //**************************************************************************************************************/
        private bool hasArrow(Cell cell)
        {
            foreach (Cell c in p_arrows)
            {
                if (c.Equals(cell))
                {
                    return true;
                }
            }

            return false;
        }
Esempio n. 2
0
 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);
     }
 }