TokenSheet Object
Jump to navigation
Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
This page describes a BOARD18 JavaScript object. |
This object is created using the TokenSheet constructor function. |
Go to Object List. - Go to Design Document. |
The TokenSheet object describes a token sheet and its use.
Element | Type | C | Description |
---|---|---|---|
image | url | * | URL of the image file |
sheetType | string | * | 'btok' or 'mtok' (see note) |
trayName | string | * | Name of tray for this sheet |
xStart | int | * | Start of token rows |
xSize | int | * | Width of tokens |
xStep | int | * | Spacing of tokens in rows |
yStart | int | * | Start of token columns |
ySize | int | * | Hight of tokens |
yStep | int | * | Spacing of tokens in columns |
tokensOnSheet | int | * | Count of token rows on sheet |
tokenDups | array of int | * | Count of available tokens (see note) |
tokenFlip | array of boolean | * | True if token has a back side |
An * in the "C" column indicates that the element is created by the constructor function.
NOTE: Sheet Type 'btok' indicates a board token sheet. This sheet type has a tokenDups array. Sheet Type 'mtok' indicates a market token sheet. This sheet type does not have a tokenDups array.
Methods in Object
place(high) The place function places the token sheet on the tray (canvas0).