java.lang.Object |
↳ |
com.google.android.gms.games.PlayerLevelInfo |
Class Overview
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.
Summary
[Expand]
Inherited Constants |
From interface
android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
android.os.Parcelable
abstract
int
|
describeContents()
|
abstract
void
|
writeToParcel(Parcel arg0, int arg1)
|
|
Fields
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.
public
long
getCurrentXpTotal
()
Returns |
long |
The player's current XP value.
|
public
long
getLastLevelUpTimestamp
()
Returns |
long |
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.
public
boolean
isMaxLevel
()
public
void
writeToParcel
(Parcel out, int flags)
Parameters |
out |
Parcel
|
flags |
int
|