Ejemplo n.º 1
0
 public void insert(BodyObject client, PushButton pPushButton) {
   if (gameModel.getTurnHolder() == getPlayerType(client)) {
     sLogger.fine("insert: " + pPushButton);
     gameModel.insert(pPushButton);
     updateSharedState();
   }
 }
Ejemplo n.º 2
0
 public void placePlayer(BodyObject client, int x, int y) {
   if (gameModel.getTurnHolder() == getPlayerType(client)) {
     gameModel.placePlayer(x, y, getPlayerType(client));
     if (gameModel.isFinished()) endGame();
     updateSharedState();
   }
 }
Ejemplo n.º 3
0
 public PlayerType getMyPlayerType() {
   return gameModel.getPlayer(myName).getPlayerType();
 }
Ejemplo n.º 4
0
 public void linksDrehen(BodyObject client) {
   if (getPlayerType(client) == gameModel.getTurnHolder()) {
     gameModel.linksDrehen();
     updateSharedState();
   }
 }