Class Player


  • public class Player
    extends Object
    Holds data in the database for players of ScaleScroller.
    • Constructor Detail

      • Player

        public Player()
    • Method Detail

      • getId

        public long getId()
        Returns the auto-generated id for the player.
        Returns:
        The player's id.
      • setId

        public void setId​(long id)
        Sets the auto-generated id for the player.
        Parameters:
        id - The id to be set.
      • getOauthKey

        @NonNull
        public String getOauthKey()
        Returns the OAuth key for the player.
        Returns:
        The player's OAuth key.
      • setOauthKey

        public void setOauthKey​(@NonNull
                                String oauthKey)
        Sets the OAuth key for the player.
        Parameters:
        oauthKey - The OAuth key to be set.
      • getUsername

        @NonNull
        public String getUsername()
        Returns the player's username.
        Returns:
        The player's username.
      • setUsername

        public void setUsername​(@NonNull
                                String username)
        Sets the player's username.
        Parameters:
        username - The username to be set.
      • getHighestLearnLevel

        public int getHighestLearnLevel()
        Returns the highest learn level difficulty that the player has completed.
        Returns:
        The player's highest learn level difficulty.
      • setHighestLearnLevel

        public void setHighestLearnLevel​(int highestLearnLevel)
        Sets the highest learn level difficulty that the player has completed.
        Parameters:
        highestLearnLevel - The highest learn level difficulty that the player has completed.