Examples of GameSheet


Examples of game.gamesheet.GameSheet

      if(inObj.getClass().getSimpleName().equals("Dice")){
        Dice initDice = (Dice)inObj;
        client.setDice(initDice);
      }
      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;
View Full Code Here

Examples of game.gamesheet.GameSheet

        if(fromClient.getClass().getSimpleName().equals("Dice")){
        Dice diceFromClient = (Dice) fromClient;
        System.out.println(diceFromClient.toString());
        outQueue.addObject(diceFromClient);
        }else if(fromClient.getClass().getSimpleName().equals("GameSheet")){
          GameSheet gamesheetFromClient = (GameSheet)fromClient;
          outQueue.addObject(gamesheetFromClient);
        }
      }
    } catch (IOException e) {
    } finally {
View Full Code Here

Examples of game.gamesheet.GameSheet

//    System.out.println("SmallStraightScoreSlotTest: " + small.toString());
//    large.addScoreToSlot(testDice);
//    System.out.println("LargeStraightScoreSlotTest: " + large.toString());
//   
   
    GameSheet newSheet = new GameSheet(4);
    newSheet.printGameSheetContents();

//    YahtzeeFrame main = new YahtzeeFrame(gameDice, newSheet);
    //StartupFrame frame = new StartupFrame(gameDice, newSheet);
  }
View Full Code Here

Examples of game.gamesheet.GameSheet

   *
   * @param size the size for the game room
   */
  public GameRoom(int size) {
    this.size = size;
    gameSheet = new GameSheet(size);
  }
View Full Code Here

Examples of game.gamesheet.GameSheet

 
  /**
   * Resets the room variables.
   */
  public void resetRoom() {
    gameSheet = new GameSheet(size);
    dice = new Dice(5);
    dice.generateNeutralDice();
    clients = new ArrayList<ClientHandler>();
    inProgress = false;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.