/// <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}$ ?")); }
/// <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}$ ?")); }
/// <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} ?")); }
public bool GetConfirmation(string message = "Do you want to continue ?") { return(UserInteraction.GetConfirmation(message)); }