Package game.leaderboard

Examples of game.leaderboard.Leaderboard


      if(inObj.getClass().getSimpleName().equals("GameSheet")){
        GameSheet initSheet = (GameSheet)inObj;
        client.setGameSheet(initSheet);
      }
      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;
        processMessageInput(inboundMsg);
      }
      //client.getConnection().sendRcvdConfirmation(inObj);    //TEMPORARILY DISABLED
      break;
    case GAME_IN_PROGRESS:
      if(inObj.getClass().getSimpleName().equals("Dice")){
        Dice refreshedDice = (Dice)inObj;
        client.getDice().refershDice(refreshedDice);
        client.getCurrentFrame().updateGUIForeign();
        //System.out.println("Hetket�ringute (" + client.getDice().getDiceValues() + ") omanik: " + client.getDice().getCurOwner());
      }
      if(inObj.getClass().getSimpleName().equals("GameSheet")){
        GameSheet refGameSheet = (GameSheet)inObj;
        client.getGameSheet().refreshGameSheet(refGameSheet);
        client.getCurrentFrame().updateGUIForeign();
      }
      if(inObj.getClass().getSimpleName().equals("Leaderboard")){
        Leaderboard refLeaderboard = (Leaderboard)inObj;
        client.getLeaderboard().refreshLeaderboard(refLeaderboard);
        client.getCurrentFrame().updateGUIForeign();
      }
      if(inObj.getClass().getSimpleName().equals("Message")){
        Message inboundMsg = (Message)inObj;
View Full Code Here

TOP

Related Classes of game.leaderboard.Leaderboard

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.