java.lang.Object | |
↳ | com.google.android.gms.games.PlayerLevel |
Data object representing a level a player can obtain in the metagame.
A PlayerLevel
has three components: a numeric value, and a range of XP totals it
represents. A player is considered a given level if they have at least getMinXp()
and less than getMaxXp()
.
[Expand]
Inherited Constants | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]()
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the number for this level, e.g.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||||||||||||||||||||||||
![]() |
Returns the number for this level, e.g. "level 10".
This is the level that this object represents. For a player to be considered as being of this level, the value given bygetCurrentXpTotal()
must fall in the range
[getMinXp()
, getMaxXp()
).