Packagecom.myflashlab.air.extensions.googleGames
Classpublic class PlayerLevelInfo
InheritancePlayerLevelInfo Inheritance Object

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 Properties
 PropertyDefined By
  currentLevel : PlayerLevel
[read-only] Getter for the player's current level object.
PlayerLevelInfo
  currentXpTotal : Number
[read-only] The player's current XP value.
PlayerLevelInfo
  isMaxLevel : Boolean
[read-only] true if the player reached the maximum level getCurrentLevel is the same as getNextLevel.
PlayerLevelInfo
  lastLevelUpTimestamp : Number
[read-only] The timestamp of the player's last level-up.
PlayerLevelInfo
  nextLevel : PlayerLevel
[read-only] Getter for the player's next level object.
PlayerLevelInfo
Property Detail
currentLevelproperty
currentLevel:PlayerLevel  [read-only]

Getter for the player's current level object. This object will be the same as the one returned from nextLevel if the player reached the maximum level.


Implementation
    public function get currentLevel():PlayerLevel
currentXpTotalproperty 
currentXpTotal:Number  [read-only]

The player's current XP value.


Implementation
    public function get currentXpTotal():Number
isMaxLevelproperty 
isMaxLevel:Boolean  [read-only]

true if the player reached the maximum level getCurrentLevel is the same as getNextLevel.


Implementation
    public function get isMaxLevel():Boolean
lastLevelUpTimestampproperty 
lastLevelUpTimestamp:Number  [read-only]

The timestamp of the player's last level-up.


Implementation
    public function get lastLevelUpTimestamp():Number
nextLevelproperty 
nextLevel:PlayerLevel  [read-only]

Getter for the player's next level object. This object will be the same as the one returned from currentLevel if the player reached the maximum level.


Implementation
    public function get nextLevel():PlayerLevel