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.
| public static final Creator<PlayerLevelInfo> | CREATOR |
| boolean | |
| PlayerLevel |
getCurrentLevel()
Getter for the player's current level object.
|
| long |
getCurrentXpTotal()
Returns the player's current XP value.
|
| long |
getLastLevelUpTimestamp()
Returns the timestamp of the player's last level-up.
|
| PlayerLevel |
getNextLevel()
Getter for the player's next level object.
|
| int |
hashCode()
|
| boolean |
isMaxLevel()
Returns
true if the player reached the maximum level
(getCurrentLevel()
is the same as
getNextLevel().
|
| void |
writeToParcel(Parcel out, int
flags)
|
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 XP value.
Returns the timestamp of the player's last level-up.
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 true if the player reached the maximum level (getCurrentLevel()
is the same as getNextLevel().