-
GamePlayer.getEquipmentLength
()number
static
-
Get the max size of equipment kind names
Returns:
-
GamePlayer.getTemporaryPlayer
(values)GamePlayer
static
-
Get the max size of equipment kind names
Name |
Type |
Description |
values |
Array.<number>
|
The values |
Returns:
-
getSaveCharacter
()Object
-
Get a compressed object for saving the character in a file
Returns:
-
getSaveStat
()Array.<number>
-
Get the statistics for save character
Returns:
Type |
Description |
Array.<number>
|
|
-
getSaveEquip
()Array.<Array.<number>>
-
Get the equips for save character
Returns:
Type |
Description |
Array.<Array.<number>>
|
|
-
-
Check if the character is dead
Returns:
-
-
Instanciate a character in a particular level
Name |
Type |
Description |
level |
number
|
The level of the new character |
-
getEquipmentStatsAndBonus
(item, equipmentID)Array.<Array.<number>>
-
Get the stats thanks to equipments
Name |
Type |
Description |
item |
SystemItem
|
The system item |
equipmentID |
number
|
The equipment ID |
Returns:
Type |
Description |
Array.<Array.<number>>
|
|
-
updateEquipmentStats
(list, bonus)Array.<Array.<number>>
-
Update stats with equipment stats
Name |
Type |
Description |
list |
Array.<number>
|
The stats list |
bonus |
Array.<number>
|
The bonus list |
Returns:
Type |
Description |
Array.<Array.<number>>
|
|
-
initStatValue
(statistic, bonus)
-
Initialize stat value
Name |
Type |
Description |
statistic |
SystemStatistic
|
The statistic |
bonus |
number
|
The value |
-
updateStatValue
(statistic, bonus)
-
Update stats value
Name |
Type |
Description |
statistic |
SystemStatistic
|
The statistic |
bonus |
number
|
The value |
-
-
Update all the stats values
-
getBarAbbreviation
(stat)
-
Get the bar abbreviation
-
-
Read the JSON associated to the character and items
Name |
Type |
Description |
json |
object
|
Json object describing the items |
-
-
Get the character informations system
Returns:
-
-
Get the current level
Returns:
-
-
Apply level up
-
getRewardExperience
()number
-
Get the experience reward
Returns:
-
getRewardCurrencies
()Object
-
Get the currencies reward
Returns:
-
getRewardLoots
()Array.<Object>
-
Get the loots reward
Returns:
Type |
Description |
Array.<Object>
|
|
-
updateRemainingXP
(fullTime)
-
Update remaining xp according to full time
Name |
Type |
Description |
fullTime |
number
|
Full time in milliseconds |
-
updateObtainedExperience
()
-
Update obtained experience
-
updateExperience
()boolean
-
Update experience and check if leveling up
Returns:
-
-
Pass the progressive experience and directly update experience
-
-
Pause experience (when leveling up)
-
-
Unpause experience
-
isExperienceUpdated
()boolean
-
Check if experience is updated
Returns: