예제 #1
0
        public void payJailFee(Player player)
        {
            //check player has money to pay
            if (player.getBalance() < 50)
            {
                Console.WriteLine("{0}Does not have enough money to get out of jail .", this.playerPrompt(player));
                return;
            }

            //pay $50 to bank
            player.payJailFee();

            Console.WriteLine("{0}Paid to get out of jail .", this.playerPrompt(player));
            return;
        }