Added: SkipNotConnected model method
This commit is contained in:
@@ -30,7 +30,11 @@ public class GameController {
|
|||||||
*/
|
*/
|
||||||
public GameController() {
|
public GameController() {
|
||||||
}
|
}
|
||||||
|
//TODO
|
||||||
|
public boolean SkipNotConnectedPlayer(Player player)
|
||||||
|
{
|
||||||
|
return model.SkipNotConnectedPlayer(player);
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* Returns the game model managed by this controller.
|
* Returns the game model managed by this controller.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -40,7 +40,17 @@ public class Game implements Serializable {
|
|||||||
public List<Player> getPlayers() {
|
public List<Player> getPlayers() {
|
||||||
return playersList;
|
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.
|
* Returns the current number of players participating in the game.
|
||||||
* @return the current number of players.
|
* @return the current number of players.
|
||||||
|
|||||||
Reference in New Issue
Block a user