Exemplo n.º 1
0
  /**
   * Method: getScore Getter method for Score object
   *
   * @return Score
   */
  public Score getScore() {
    Score score = Score.Singleton();

    score.numSlyTalkingProperty().set(this.numSlyTalking);
    score.numDefeatedPrisonerProperty().set(this.numDefeatedPrisoner);
    score.numBartersProperty().set(this.numBarters);
    score.numBribesProperty().set(this.numBribes);
    score.setNumPuzzlesSolved(this.numPuzzlesSolved);
    score.setNumRoomsVisited(this.numRoomsVisited);

    return score;
  }
Exemplo n.º 2
0
  /**
   * Method: setScore Setter method for Score
   *
   * @param score Score
   */
  public void setScore(Score score) {
    numSlyTalking = score.getNumSlyTalking();

    numDefeatedPrisoner = score.getNumDefeatedPrisoner();

    numBarters = score.getNumBarters();

    numBribes = score.getNumBribes();

    numPuzzlesSolved = score.getNumPuzzlesSolved();

    numRoomsVisited = score.getNumRoomsVisited();
  }