Data object representing the current level information of a player in the metagame.
APlayerLevelInfo
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 finalCreator<PlayerLevelInfo> | CREATOR |
Public Method Summary
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(Parcelout, int
flags)
|
Inherited Method Summary
Fields
public static finalCreator<PlayerLevelInfo> CREATOR
Public Methods
public booleanequals(Objectobj)
publicPlayerLevel getCurrentLevel()
Getter for the player's current level object. This object will be the same as the
one returned fromgetNextLevel()
if the player reached the maximum level.
SeeisMaxLevel()
Returns
- The player's current level object.
public longgetCurrentXpTotal()
Returns the player's current XP value.
public longgetLastLevelUpTimestamp()
Returns the timestamp of the player's last level-up.
publicPlayerLevel 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.
SeeisMaxLevel()
Returns
- The player's next level object.
public inthashCode()
public booleanisMaxLevel()
Returnstrue
if the player reached the maximum level (getCurrentLevel()
is the same asgetNextLevel()
.