Ejemplo n.º 1
0
 /** Starting the game and controler. */
 public void startGame() {
   playersInGame.addAll(waitingPlayers);
   waitingPlayers.remove(playersInGame);
   for (Player players : waitingPlayers) {
     if ((Boolean) players.getTemporaryAttributtes().get("priority1"))
       players
           .getPackets()
           .sendGameMessage(
               "You have been given priority level 1 over other players in joining the next game.");
     if ((Boolean) players.getTemporaryAttributtes().get("priority2"))
       players
           .getPackets()
           .sendGameMessage(
               "You have been given priority level 2 over other players in joining the next game.");
   }
   // player.getControllerManager().startControler("PestControler");
 }
Ejemplo n.º 2
0
 /**
  * Leaving the boat.
  *
  * @param player the player to remove.
  */
 private void leaveBoat() {
   if (waitingPlayers.contains(player)) waitingPlayers.remove(player);
   player.closeInterfaces();
   player.setNextWorldTile(OUTSIDE_AREA);
 }