Esempio n. 1
0
 /// <summary>
 /// Try to pick an item contained in player's position and store it in the bag.
 /// </summary>
 /// <param name="aBoard">The board where the player is moving.</param>
 /// <returns><c>true</c>, if there is an item in player's position <c>false</c> otherwise.</returns>
 public bool PickItem(Board aBoard)
 {
     if (!aBoard.ContainsItem(Row, Col))
     {
         return(false);
     }
     _bag.InsertaFin(aBoard.PickItem(Row, Col));
     return(true);
 }