Package server.protocol

Examples of server.protocol.PlayerList


      if(inObj.getClass().getSimpleName().equals("Leaderboard")){
        Leaderboard initBoard = (Leaderboard)inObj;
        client.setLeaderboard(initBoard);
      }
      if(inObj.getClass().getSimpleName().equals("PlayerList")){
        PlayerList refPlayers = (PlayerList)inObj;
        client.getJoinedList().refreshPlayerList(refPlayers);
        client.getCurrentFrame().updateGUIForeign();
      }
      if(inObj.getClass().getSimpleName().equals("Message")){
        Message inboundMsg = (Message)inObj;
View Full Code Here


      clients.put(data.getName(), data.getJoinTime());
    }
    iterator = room.getClients().iterator();
    while (iterator.hasNext()){
      toHandler = (ClientHandler) iterator.next();
      toHandler.sendClientObject(new PlayerList(clients));
    }
  }
View Full Code Here

  private YahtzeeFrame currentFrame;

  public Client(){
    setState(ClientState.PROCESS_LAUNCHED);
    conn = new Connection(ClientMain.INET_ADDRESS, ClientMain.COMM_PORT, this);
    joinedList = new PlayerList(new HashMap<String, Date>());
    currentFrame = new StartupFrame(this);
  }
View Full Code Here

TOP

Related Classes of server.protocol.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.