示例#1
0
文件: Manager.java 项目: nh2/dsa42
 public void insert(BodyObject client, PushButton pPushButton) {
   if (gameModel.getTurnHolder() == getPlayerType(client)) {
     sLogger.fine("insert: " + pPushButton);
     gameModel.insert(pPushButton);
     updateSharedState();
   }
 }
示例#2
0
文件: Manager.java 项目: nh2/dsa42
 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();
   }
 }
示例#3
0
文件: Manager.java 项目: nh2/dsa42
 public void linksDrehen(BodyObject client) {
   if (getPlayerType(client) == gameModel.getTurnHolder()) {
     gameModel.linksDrehen();
     updateSharedState();
   }
 }