Class: SystemClass

SystemClass

A class of the game

new SystemClass (json)

Name Type Description
json Object optional Json object describing the class
Properties:
Name Type Argument Default Description
SystemClass.PROPERTY_FINAL_LEVEL string <optional>
"finalLevel" The final level string property
SystemClass.PROPERTY_EXPERIENCE_BASE string <optional>
"experienceBase" The experience base property
SystemClass.PROPERTY_EXPERIENCE_INFLATION string <optional>
"experienceInflation" The experience inflation property
initialLevel number The initial level
finalLevel number The final level
experienceBase number The experience base
experienceInflation number The experience inflation
experienceTable Object The experience table
statisticsProgression Array.<SystemStatisticProgression> The statistics progression
skills Array.<SystemClassSkill> The skills to learn of the class

Extends

Methods

read (json) overrides

Read the JSON associated to the class
Name Type Description
json Object Json object describing the class

getProperty (prop, upClass)any

Get property according to upClass
Name Type Description
prop string The property name
upClass SystemClass The up class
Returns:
Type Description
any

getExperienceTable (upClass)Object

Get the experience table
Name Type Description
upClass SystemClass The up class
Returns:
Type Description
Object

getStatisticsProgression (upClass)Array.<SystemStatisticProgression>

Get the statistics progression
Name Type Description
upClass SystemClass The up class
Returns:
Type Description
Array.<SystemStatisticProgression>

getSkills (upClass)Array.<SystemClassSkill>

Get the skills
Name Type Description
upClass SystemClass The up class
Returns:
Type Description
Array.<SystemClassSkill>

name ()string inherited overrides

Get the name according to current lang
Returns:
Type Description
string

getCommand () inherited overrides

Update lang according to a command list and iterator