Class BasicPlayerProfile


  • public class BasicPlayerProfile
    extends java.lang.Object
    BasicPlayerProfile is a class that represents a basic player profile. It contains information about the player such as their username, first name, last name, profile photo, total score, highest score and lowest score.
    • Constructor Summary

      Constructors 
      Constructor Description
      BasicPlayerProfile​(java.lang.String username, java.lang.String firstName, java.lang.String lastName, int totalScore, int totalScans, int highestScore, int lowestScore)
      Constructor for BasicPlayerProfile class
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getFirstName()
      Getter method for the first name of the player
      int getHighestScore()
      Returns the highest score achieved by the player.
      java.lang.String getLastName()
      Getter method for the last name of the player
      int getLowestScore()
      Returns the lowest score achieved by the player.
      Photo getProfilePhoto()
      Getter method for the profile photo of the player
      int getTotalScans()  
      int getTotalScore()
      Getter method for the total score of the player
      java.lang.String getUsername()
      Getter method for the username of the player
      void setFirstName​(java.lang.String firstName)
      Setter method for the first name of the player
      void setHighestScore​(int highestScore)
      Sets the highest score achieved by the player.
      void setLastName​(java.lang.String lastName)
      Setter method for the last name of the player
      void setLowestScore​(int lowestScore)
      Sets the lowest score achieved by the player.
      void setProfilePhoto​(Photo profilePhoto)
      Setter method for the profile photo of the player
      void setTotalScans​(int totalScans)  
      void setTotalScore​(int totalScore)
      Setter method for the total score of the player
      void setUsername​(java.lang.String username)
      Setter method for the username of the player
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • username

        protected java.lang.String username
      • firstName

        protected java.lang.String firstName
      • lastName

        protected java.lang.String lastName
      • profilePhoto

        protected Photo profilePhoto
      • totalScore

        protected int totalScore
      • totalScans

        protected int totalScans
      • highestScore

        protected int highestScore
      • lowestScore

        protected int lowestScore
    • Constructor Detail

      • BasicPlayerProfile

        public BasicPlayerProfile​(java.lang.String username,
                                  java.lang.String firstName,
                                  java.lang.String lastName,
                                  int totalScore,
                                  int totalScans,
                                  int highestScore,
                                  int lowestScore)
        Constructor for BasicPlayerProfile class
        Parameters:
        username - the username of the player
        firstName - the first name of the player
        lastName - the last name of the player
        totalScore - the total score of the player
        totalScans - the total score of the player
        highestScore - the highest score of the player
        lowestScore - the lowest score of the player
    • Method Detail

      • getTotalScans

        public int getTotalScans()
      • setTotalScans

        public void setTotalScans​(int totalScans)
      • getUsername

        public java.lang.String getUsername()
        Getter method for the username of the player
        Returns:
        the username of the player
      • setUsername

        public void setUsername​(java.lang.String username)
        Setter method for the username of the player
        Parameters:
        username - the username of the player to be set
      • getFirstName

        public java.lang.String getFirstName()
        Getter method for the first name of the player
        Returns:
        the first name of the player
      • setFirstName

        public void setFirstName​(java.lang.String firstName)
        Setter method for the first name of the player
        Parameters:
        firstName - the first name of the player to be set
      • getLastName

        public java.lang.String getLastName()
        Getter method for the last name of the player
        Returns:
        the last name of the player
      • setLastName

        public void setLastName​(java.lang.String lastName)
        Setter method for the last name of the player
        Parameters:
        lastName - the last name of the player to be set
      • getProfilePhoto

        public Photo getProfilePhoto()
        Getter method for the profile photo of the player
        Returns:
        the profile photo of the player
      • setProfilePhoto

        public void setProfilePhoto​(Photo profilePhoto)
        Setter method for the profile photo of the player
        Parameters:
        profilePhoto - the profile photo of the player to be set
      • getTotalScore

        public int getTotalScore()
        Getter method for the total score of the player
        Returns:
        the total score of the player
      • setTotalScore

        public void setTotalScore​(int totalScore)
        Setter method for the total score of the player
        Parameters:
        totalScore - the total score of the player to be set
      • getHighestScore

        public int getHighestScore()
        Returns the highest score achieved by the player.
        Returns:
        the highest score achieved by the player
      • setHighestScore

        public void setHighestScore​(int highestScore)
        Sets the highest score achieved by the player.
        Parameters:
        highestScore - the highest score achieved by the player
      • getLowestScore

        public int getLowestScore()
        Returns the lowest score achieved by the player.
        Returns:
        the lowest score achieved by the player
      • setLowestScore

        public void setLowestScore​(int lowestScore)
        Sets the lowest score achieved by the player.
        Parameters:
        lowestScore - the lowest score achieved by the player