Kniffel/domain/Game.java

28 lines
531 B
Java
Raw Normal View History

package domain;
import java.util.ArrayList;
public class Game {
private ArrayList<Player> currentPlayers;
private int turnPlayer;
private Dice dice;
public Game(){
currentPlayers = new ArrayList<Player>();
turnPlayer = 0;
dice = new Dice(6);
}
public int rollDice(){
return dice.roll();
}
public void addPlayer(Player playerToAdd){
currentPlayers.add(playerToAdd);
}
public ArrayList<Player> getPlayers(){
return currentPlayers;
}
}