Beispiel #1
0
 public void AddFish(Fish f)
 {
     if (f != null)
     {
         Fishlist.Add(f);
     }
 }
Beispiel #2
0
 public void SellFish(Fish f)
 {
     if (f != null)
     {
         if (!f.IsTrophy())
         {
             player.Money += (int)f.Price * f.Weight;
         }
         else
         {
             player.Money += (int)f.Price * 3 * f.Weight;
         }
         Fishlist.Remove(f);
         BaseController.GetController().SavePlayer();
     }
 }