Added: SkipNotConnected model method
This commit is contained in:
@@ -40,7 +40,17 @@ public class Game implements Serializable {
|
||||
public List<Player> getPlayers() {
|
||||
return playersList;
|
||||
}
|
||||
//TODO
|
||||
public boolean SkipNotConnectedPlayer(Player player)
|
||||
{
|
||||
if(currentState.getCurrentPlayer()!=player)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
nextPlayerSetup();
|
||||
return true;
|
||||
|
||||
}
|
||||
/**
|
||||
* Returns the current number of players participating in the game.
|
||||
* @return the current number of players.
|
||||
|
||||
Reference in New Issue
Block a user