AI-generated Key Takeaways
-
PlayerLevelInfo is a data object representing a player's current level information in a metagame.
-
It contains the player's current XP, the timestamp of their last level-up, their current level, and their next level.
-
Key methods include retrieving the current XP, last level-up timestamp, current level object, next level object, and checking if the player is at the maximum level.
Data object representing the current level information of a player in the metagame.
A PlayerLevelInfo
has four components: the player's current XP, the timestamp
of the player's last level-up, the player's current level, and the player's next level.
Inherited Constant Summary
Field Summary
| public static final Creator < PlayerLevelInfo > | CREATOR |
Public Method Summary
| boolean | |
| PlayerLevel | |
| long | |
| long | |
| PlayerLevel | |
| int | hashCode
()
|
| boolean | isMaxLevel
()
Returns
true
if the player reached the maximum level
( getCurrentLevel()
is the same as getNextLevel()
. |
| void |
Inherited Method Summary
Fields
public static final Creator < PlayerLevelInfo > CREATOR
Public Methods
public boolean equals ( Object obj)
public PlayerLevel getCurrentLevel ()
Getter for the player's current level object. This object will be the same as the
one returned from getNextLevel()
if the player reached the maximum level.
See isMaxLevel()
Returns
- The player's current level object.
public long getCurrentXpTotal ()
Returns the player's current XP value.
public long getLastLevelUpTimestamp ()
Returns the timestamp of the player's last level-up.
public PlayerLevel getNextLevel ()
Getter for the player's next level object. This object will be the same as the one
returned from getCurrentLevel()
if the player reached the maximum level.
See isMaxLevel()
Returns
- The player's next level object.
public int hashCode ()
public boolean isMaxLevel ()
Returns true
if the player reached the maximum level ( getCurrentLevel()
is the same as getNextLevel()
.

