Package games.stendhal.server.core.engine

Examples of games.stendhal.server.core.engine.PlayerList


  /**
   * reset the list of online players.
   */
  public void clearPlayers() {
    onlinePlayers = new PlayerList();
  }
View Full Code Here


  }

  @Override
  public void execute(final Player admin, List<String> args) {
    Collection<Player> onlinePlayers = SingletonRepository.getRuleProcessor().getOnlinePlayers().getAllPlayers();
    PlayerList pl = new PlayerList();
    int packet = 1;
    for (Player p : onlinePlayers) {
      String zoneName = p.getZone().getName();
      if ((zoneName != null) && (zoneName.equals("int_afterlife") || zoneName.equals("int_semos_guard_house"))) {
        pl.add(p);
        if(pl.getAllPlayers().size() == 5) {
          SingletonRepository.getTurnNotifier().notifyInTurns(packet, new MoveAndStrengthenPlayersTurnListener(pl, admin));
          pl = new PlayerList();
          packet += 1;
        }
      }
    }
   
View Full Code Here

TOP

Related Classes of games.stendhal.server.core.engine.PlayerList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.