예제 #1
0
 public void SellWeddingCake()
 {
     //adjust the player's balance
     //player is no longer holding an item
     _balance    += WeddingCake.WEDDINGCAKE_SELL_PRICE;
     _itemHolding = null;
     _isHolding   = false;
 }
예제 #2
0
 //Sell a pumpkin
 public void SellPumpkin()
 {
     //adjust the player's balance
     //player is no longer holding an item
     _balance    += Pumpkin.PUMPKIN_SELL_PRICE;
     _itemHolding = null;
     _isHolding   = false;
 }
예제 #3
0
 //Sell a radish
 public void SellRadish()
 {
     //adjust the player's balance
     //player is no longer holding an item
     _balance    += Radish.RADISH_SELL_PRICE;
     _itemHolding = null;
     _isHolding   = false;
 }
예제 #4
0
 //Buys a pumpking crop object
 public void BuyPumpkin()
 {
     if (Balance >= Pumpkin.PUMPKIN_BUY_PRICE)
     {
         _balance    -= Pumpkin.PUMPKIN_BUY_PRICE;
         _itemHolding = new Pumpkin(0, PlayerLocation.X, PlayerLocation.Y, false);
         _isHolding   = true;
     }
 }
예제 #5
0
 public void BuyWeddingCake()
 {
     if (Balance >= WeddingCake.WEDDINGCAKE_BUY_PRICE)
     {
         // maybe change to captial get one
         _balance    -= WeddingCake.WEDDINGCAKE_BUY_PRICE;
         _itemHolding = new WeddingCake(0, PlayerLocation.X, PlayerLocation.Y, false);
         _isHolding   = true;
     }
 }
예제 #6
0
 public void BuyRadish()
 {
     if (IsHoldingItem == false)
     {
         if (Balance >= Radish.RADISH_BUY_PRICE)
         {
             _balance    -= Radish.RADISH_BUY_PRICE;
             _itemHolding = new Radish(0, PlayerLocation.X, PlayerLocation.Y, false);
             _isHolding   = true;
         }
     }
 }
예제 #7
0
 public void GiftItem()
 {
     _isHolding   = false;
     _itemHolding = null;
 }
예제 #8
0
 /// <summary>
 /// Picks up the crop infront of the player
 /// </summary>
 /// <param name="crop">crop item that is to be picked up </param>
 public void PickUpCrop(Crops crop)
 {
     //player is holding an crop item
     _itemHolding = crop;
     _isHolding   = true;
 }
예제 #9
0
 //Places crop on the ground
 public void DropCrop()
 {
     //player is no longer holding item
     _itemHolding = null;
     _isHolding   = false;
 }