Typedef
| Static Public Summary | ||
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
Static Public
public orientations: Object source
Properties:
| Name | Type | Attribute | Description |
| horizontal | orientation | ||
| vertical | orientation |
public parameters: Object source
Properties:
| Name | Type | Attribute | Description |
| numRows | number | number of rows on the board |
|
| numColumns | number | number of columns on the board |
|
| shipTypes | shipTypes | object of all shiptypes |
|
| orientations | orientations | object of orientations |
|
| totalCount | number | total number of ships |
Test:
public shipType: Object source
Properties:
| Name | Type | Attribute | Description |
| shipTypeId | number | 1 = Aircraft Carrier, 2 = Battleship, 3 = Cruiser, 4 = Destroyer, 5 = Submarine |
|
| name | string | Aircraft Carrier | Battleship | Cruiser | Destroyer | Submarine |
|
| length | number | length of ship |
|
| count | number | number of this ship type on the board |
|
| color | string | ansi (chalk) color used in tile.toString() |
|
| backgroundColor | string | HTML color used in tile.toHtml() |