la til playername

This commit is contained in:
Tobydrama 2020-04-14 14:51:53 +02:00
parent c389b29195
commit 4632fe3acd

View File

@ -10,12 +10,21 @@ import java.util.List;
public class GameStartInfo {
private String boardName;
private List<Player> playerList;
private String playerName;
/**
* Empty initialization method used by kryo
*/
public GameStartInfo() {}
public void setPlayerName(String playerName) {
this.playerName = playerName;
}
public String getPlayerName() {
return playerName;
}
/**
* Sets the name of the board to be used
* @param boardName The name of the board to be used, with extension
@ -37,7 +46,8 @@ public class GameStartInfo {
* @param boardName The name of the board to be used, with extension
* @param playerList List of players for the game
*/
public GameStartInfo(String boardName, List<Player> playerList) {
public GameStartInfo(String boardName, List<Player> playerList,String name) {
this.playerName=name;
this.boardName = boardName;
this.playerList = playerList;
}