summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/model/Score.java
blob: ad530f6f1b9ed7f374597db7726fbab3200900ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package jrummikub.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Score of a single round
 */
public class Score implements Serializable {
	private static final long serialVersionUID = 2200041688506962025L;

	private ArrayList<Boolean> winners;
	private ArrayList<Integer> points;

	/**
	 * Create a new round score
	 * 
	 * @param winners
	 *          set for each player among the winners
	 * @param points
	 *          points of each player
	 */
	public Score(List<Boolean> winners, List<Integer> points) {
		this.winners = new ArrayList<Boolean>(winners);
		this.points = new ArrayList<Integer>(points);
	}

	/**
	 * Get the winner list
	 * 
	 * @return set for each player among the winners
	 */
	public List<Boolean> getWinners() {
		return winners;
	}

	/**
	 * Get the point list
	 * 
	 * @return points of each player
	 */
	public List<Integer> getPoints() {
		return points;
	}
}