mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-01-31 23:29:36 +01:00
la til playername
This commit is contained in:
parent
c389b29195
commit
4632fe3acd
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user