Class: ModelToken

ModelToken


new ModelToken( [p_config])

Parameters:
Name Type Argument Description
p_config Object <optional>
Properties
Name Type Argument Default Description
type string <optional>
'' the type of the token
i number <optional>
0 the x position of the token in the board
j number <optional>
0 the y position of the token in the board
width number <optional>
0
height number <optional>
0
Properties:
Name Type Description
type string the type of the token
lines Array.<Object> the lines of the board that belong to the token (initialize by the board itself)
i number the x position of the token in the board
j number the y position of the token in the board
width number the width of the rectangle
height number the height of the rectangle
Source:

Extends

Methods


reset()

Resets the model to its config values.
Inherited From:
Overrides:
Source: