new ModelToken( [p_config])
Parameters:
| Name | Type | Argument | Description | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
p_config |
Object |
<optional> |
Properties
|
- Source:
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 |
Extends
Methods
-
reset()
-
Resets the model to its config values.
- Inherited From:
- Overrides:
- Source: