Class PlayerDataModel

java.lang.Object
it.polimi.ingsw.Client.PlayerDataModel

public class PlayerDataModel extends Object
Class to define player's data model for ScoreBoard use
  • Field Details

    • nickname

      private final String nickname
      Player's nickname
    • points

      private final Integer points
      Player's points
  • Constructor Details

    • PlayerDataModel

      public PlayerDataModel(String nickname, int points)
      Class constructor
      Parameters:
      nickname - player's nickname
      points - player's points
  • Method Details

    • getNickname

      public String getNickname()
      Getter method for player's nickname
      Returns:
      player's nickname
    • getPoints

      public int getPoints()
      Getter method for player's points
      Returns:
      player's points