Class: GraphicStatisticProgression

GraphicStatisticProgression

The graphic displaying all the stats in the player description state menu

new GraphicStatisticProgression (gamePlayer)

Name Type Description
gamePlayer GamePlayer The current selected player
Properties:
Name Type Description
gamePlayer GamePlayer The current selected player
listStatsProgression GraphicText All the graphic text for stats progression
listStatsNames GraphicText All the player's stats names graphics
listStats GraphicText All the player's stats values graphics
maxLength number The max length of the stats for each column
maxProgressionLength number The max stat progression length for each column

Methods

updateStatisticProgression ()

Update the statistic progression graphics

getHeight ()number

Get the stat names list height
Returns:
Type Description
number

drawBox (x, y, w, h)

Drawing the player description
Name Type Description
x number The x position to draw graphic
y number The y position to draw graphic
w number The width dimention to draw graphic
h number The height dimention to draw graphic