All Downloads are FREE. Search and download functionalities are using the official Maven repository.

za.co.knowles.pokewhat.domain.GameResult Maven / Gradle / Ivy

package za.co.knowles.pokewhat.domain;

import java.util.Map;

public class GameResult {
    private Map winners;
    private String description;
    private double amount;

    public GameResult(Map winningPlayers, String description, double amount) {
        this.winners = winningPlayers;
        this.description = description;
        this.amount = amount;
    }

    public Map getWinners() {
        return winners;
    }

    public String getDescription() {
        return description;
    }

    public double getAmountPerPlayer() {
        return amount / winners.size();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy