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();
}
}