예제 #1
0
 /// <summary>
 /// Ask the player if he wants to build a house on the land
 /// </summary>
 /// <param name="land"></param>
 /// <returns> A boolean representing the response of the player</returns>
 public bool GetBuildHouseHereConfirmation(Land land)
 {
     return(UserInteraction.GetConfirmation($"Do you want to build a house on {land} for {land.HousePrice}$ ?"));
 }
예제 #2
0
 /// <summary>
 /// Ask the player if he wants to buy the property
 /// </summary>
 /// <param name="property"></param>
 /// <returns> A boolean representing the response of the player</returns>
 public bool GetPurchaseConfirmation(Property propertyToBuy, int PriceToBuyFor, IPlayer playerToBuyFrom)
 {
     return(UserInteraction.GetConfirmation($"Do you want to buy {propertyToBuy} for {PriceToBuyFor}$ ?"));
 }
예제 #3
0
 /// <summary>
 /// Ask the player if he wants to sell the property
 /// </summary>
 /// <param name="property"></param>
 /// <returns> A boolean representing the response of the player</returns>
 public bool GetSaleConfirmation(Property propertyToSell, int priceToSellFor, IPlayer playerToSellTo)
 {
     return(UserInteraction.GetConfirmation($"Do you want to sell {propertyToSell} for {priceToSellFor}$ to {playerToSellTo} ?"));
 }
예제 #4
0
 public bool GetConfirmation(string message = "Do you want to continue ?")
 {
     return(UserInteraction.GetConfirmation(message));
 }