java.lang.Object |
↳ |
com.google.android.gms.games.PlayerLevel |
Class Overview
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()
.
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
int
getLevelNumber
()
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 by
getCurrentXpTotal()
must fall in the range
[
getMinXp()
,
getMaxXp()
).
Returns |
int |
The level number for this level.
|
public
long
getMaxXp
()
Returns |
long |
The maximum XP value represented by this level, exclusive.
|
public
long
getMinXp
()
Returns |
long |
The minimum XP value needed to attain this level, inclusive.
|
public
String
toString
()
public
void
writeToParcel
(Parcel out, int flags)
Parameters |
out |
Parcel
|
flags |
int
|