Exemple #1
0
        public void CurrentPlayerPaysPlayer(Player paidPlayer, int amountPaid)
        {
            // This function assumes the Player has sufficient funds to pay.
            // There is a separate function that will deal with the case where
            // The player does not have enough funds to pay

            Game1.debugMessageQueue.addMessageToQueue("Player \"" + paidPlayer.getName + "\" receives $" + amountPaid + " from Player \"" + this.getName + "\"");

            paidPlayer.addMoney(amountPaid);
            removeMoney(amountPaid);
        }
Exemple #2
0
        public void CurrentPlayerPaysPlayer(Player paidPlayer, int amountPaid)
        {
            // This function assumes the Player has sufficient funds to pay.
            // There is a separate function that will deal with the case where
            // The player does not have enough funds to pay

            Game1.debugMessageQueue.addMessageToQueue("Player \"" + paidPlayer.getName + "\" receives $" + amountPaid + " from Player \"" + this.getName + "\"");

            paidPlayer.addMoney(amountPaid);
            removeMoney(amountPaid);
        }