@thegraid/hexlib 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/game-setup.d.ts +15 -6
- package/dist/game-setup.d.ts.map +1 -1
- package/dist/game-setup.js +18 -8
- package/dist/game-setup.js.map +1 -1
- package/dist/hex.d.ts +62 -20
- package/dist/hex.d.ts.map +1 -1
- package/dist/hex.js +37 -3
- package/dist/hex.js.map +1 -1
- package/dist/table.d.ts +86 -81
- package/dist/table.d.ts.map +1 -1
- package/dist/table.js +7 -3
- package/dist/table.js.map +1 -1
- package/package.json +2 -1
package/dist/table.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { Container, DisplayObject, EventDispatcher, Shape, Stage, Text } from "@
|
|
|
6
6
|
import { NamedContainer, NamedObject, type GamePlay } from "./game-play";
|
|
7
7
|
import { Scenario } from "./game-setup";
|
|
8
8
|
import type { GameState } from "./game-state";
|
|
9
|
-
import { Hex, IHex2,
|
|
9
|
+
import { Hex, IHex2, IdHex, RecycleHex, HexM } from "./hex";
|
|
10
10
|
import { XYWH } from "./hex-intfs";
|
|
11
11
|
import { Player } from "./player";
|
|
12
12
|
import { PlayerPanel } from "./player-panel";
|
|
@@ -63,7 +63,7 @@ export declare class Table {
|
|
|
63
63
|
gamePlay: GamePlay;
|
|
64
64
|
stage: Stage;
|
|
65
65
|
bgRect: Shape;
|
|
66
|
-
hexMap:
|
|
66
|
+
hexMap: HexM<IHex2>;
|
|
67
67
|
paramGUIs: ParamGUI[];
|
|
68
68
|
netGUI: ParamGUI;
|
|
69
69
|
/** initial visibility for toggleText */
|
|
@@ -82,7 +82,7 @@ export declare class Table {
|
|
|
82
82
|
*
|
|
83
83
|
* typically: this.hexC = this.hexMap.hexC as Constructor\<IHex2\> */
|
|
84
84
|
hexC: Constructor<IHex2>;
|
|
85
|
-
overlayCont: NamedContainer;
|
|
85
|
+
readonly overlayCont: NamedContainer;
|
|
86
86
|
constructor(stage: Stage);
|
|
87
87
|
/** shows the last 2 start of turn lines */
|
|
88
88
|
turnLog: TextLog;
|
|
@@ -118,7 +118,7 @@ export declare class Table {
|
|
|
118
118
|
setUnit: (unit: Tile, meep?: boolean) => void;
|
|
119
119
|
tile: Tile | undefined;
|
|
120
120
|
meep: import("./meeple").Meeple | undefined;
|
|
121
|
-
constructorCode: (map:
|
|
121
|
+
constructorCode: (map: HexM<{
|
|
122
122
|
implementsIHex2: boolean;
|
|
123
123
|
readonly cont: import("./hex").HexCont;
|
|
124
124
|
readonly radius: number;
|
|
@@ -178,20 +178,20 @@ export declare class Table {
|
|
|
178
178
|
_district: number | undefined;
|
|
179
179
|
readonly isOnMap: boolean;
|
|
180
180
|
_isLegal: boolean;
|
|
181
|
-
readonly map:
|
|
181
|
+
readonly map: HexM<Hex>;
|
|
182
182
|
readonly row: number;
|
|
183
183
|
readonly col: number;
|
|
184
184
|
readonly links: import("./hex").LINKS<import("./hex").Hex2>;
|
|
185
185
|
metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
|
|
186
186
|
readonly linkDirs: import("./hex-intfs").HexDir[];
|
|
187
187
|
readonly linkHexes: (import("./hex").Hex2 | undefined)[];
|
|
188
|
-
forEachLinkHex: (func: (hex:
|
|
188
|
+
forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
|
|
189
189
|
findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
|
|
190
|
-
findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex:
|
|
190
|
+
findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex").Hex2 | undefined;
|
|
191
191
|
hexesInDir: (dir: import("./hex-intfs").HexDir, rv?: import("./hex").Hex2[]) => import("./hex").Hex2[];
|
|
192
192
|
forEachHexDir: (func: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => unknown) => void;
|
|
193
|
-
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) =>
|
|
194
|
-
lastHex: (ds: import("./hex-intfs").HexDir) =>
|
|
193
|
+
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) => import("./hex").Hex2 | undefined;
|
|
194
|
+
lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
|
|
195
195
|
radialDist: (hex: Hex) => number;
|
|
196
196
|
}>, row: number, col: number, name?: string | undefined) => void;
|
|
197
197
|
showText: (vis?: boolean) => void;
|
|
@@ -235,20 +235,20 @@ export declare class Table {
|
|
|
235
235
|
_district: number | undefined;
|
|
236
236
|
readonly isOnMap: boolean;
|
|
237
237
|
_isLegal: boolean;
|
|
238
|
-
readonly map:
|
|
238
|
+
readonly map: HexM<Hex>;
|
|
239
239
|
readonly row: number;
|
|
240
240
|
readonly col: number;
|
|
241
241
|
readonly links: import("./hex").LINKS<import("./hex").Hex2>;
|
|
242
242
|
metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
|
|
243
243
|
readonly linkDirs: import("./hex-intfs").HexDir[];
|
|
244
244
|
readonly linkHexes: (import("./hex").Hex2 | undefined)[];
|
|
245
|
-
forEachLinkHex: (func: (hex:
|
|
245
|
+
forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
|
|
246
246
|
findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
|
|
247
|
-
findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex:
|
|
247
|
+
findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex").Hex2 | undefined;
|
|
248
248
|
hexesInDir: (dir: import("./hex-intfs").HexDir, rv?: import("./hex").Hex2[]) => import("./hex").Hex2[];
|
|
249
249
|
forEachHexDir: (func: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => unknown) => void;
|
|
250
|
-
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) =>
|
|
251
|
-
lastHex: (ds: import("./hex-intfs").HexDir) =>
|
|
250
|
+
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) => import("./hex").Hex2 | undefined;
|
|
251
|
+
lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
|
|
252
252
|
radialDist: (hex: Hex) => number;
|
|
253
253
|
};
|
|
254
254
|
noRowHex(name: string, crxy: {
|
|
@@ -272,7 +272,7 @@ export declare class Table {
|
|
|
272
272
|
setUnit: (unit: Tile, meep?: boolean) => void;
|
|
273
273
|
tile: Tile | undefined;
|
|
274
274
|
meep: import("./meeple").Meeple | undefined;
|
|
275
|
-
constructorCode: (map:
|
|
275
|
+
constructorCode: (map: HexM<{
|
|
276
276
|
implementsIHex2: boolean;
|
|
277
277
|
readonly cont: import("./hex").HexCont;
|
|
278
278
|
readonly radius: number;
|
|
@@ -332,20 +332,20 @@ export declare class Table {
|
|
|
332
332
|
_district: number | undefined;
|
|
333
333
|
readonly isOnMap: boolean;
|
|
334
334
|
_isLegal: boolean;
|
|
335
|
-
readonly map:
|
|
335
|
+
readonly map: HexM<Hex>;
|
|
336
336
|
readonly row: number;
|
|
337
337
|
readonly col: number;
|
|
338
338
|
readonly links: import("./hex").LINKS<import("./hex").Hex2>;
|
|
339
339
|
metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
|
|
340
340
|
readonly linkDirs: import("./hex-intfs").HexDir[];
|
|
341
341
|
readonly linkHexes: (import("./hex").Hex2 | undefined)[];
|
|
342
|
-
forEachLinkHex: (func: (hex:
|
|
342
|
+
forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
|
|
343
343
|
findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
|
|
344
|
-
findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex:
|
|
344
|
+
findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex").Hex2 | undefined;
|
|
345
345
|
hexesInDir: (dir: import("./hex-intfs").HexDir, rv?: import("./hex").Hex2[]) => import("./hex").Hex2[];
|
|
346
346
|
forEachHexDir: (func: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => unknown) => void;
|
|
347
|
-
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) =>
|
|
348
|
-
lastHex: (ds: import("./hex-intfs").HexDir) =>
|
|
347
|
+
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) => import("./hex").Hex2 | undefined;
|
|
348
|
+
lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
|
|
349
349
|
radialDist: (hex: Hex) => number;
|
|
350
350
|
}>, row: number, col: number, name?: string | undefined) => void;
|
|
351
351
|
showText: (vis?: boolean) => void;
|
|
@@ -389,20 +389,20 @@ export declare class Table {
|
|
|
389
389
|
_district: number | undefined;
|
|
390
390
|
readonly isOnMap: boolean;
|
|
391
391
|
_isLegal: boolean;
|
|
392
|
-
readonly map:
|
|
392
|
+
readonly map: HexM<Hex>;
|
|
393
393
|
readonly row: number;
|
|
394
394
|
readonly col: number;
|
|
395
395
|
readonly links: import("./hex").LINKS<import("./hex").Hex2>;
|
|
396
396
|
metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
|
|
397
397
|
readonly linkDirs: import("./hex-intfs").HexDir[];
|
|
398
398
|
readonly linkHexes: (import("./hex").Hex2 | undefined)[];
|
|
399
|
-
forEachLinkHex: (func: (hex:
|
|
399
|
+
forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
|
|
400
400
|
findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
|
|
401
|
-
findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex:
|
|
401
|
+
findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex").Hex2 | undefined;
|
|
402
402
|
hexesInDir: (dir: import("./hex-intfs").HexDir, rv?: import("./hex").Hex2[]) => import("./hex").Hex2[];
|
|
403
403
|
forEachHexDir: (func: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => unknown) => void;
|
|
404
|
-
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) =>
|
|
405
|
-
lastHex: (ds: import("./hex-intfs").HexDir) =>
|
|
404
|
+
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) => import("./hex").Hex2 | undefined;
|
|
405
|
+
lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
|
|
406
406
|
radialDist: (hex: Hex) => number;
|
|
407
407
|
};
|
|
408
408
|
/**
|
|
@@ -477,7 +477,7 @@ export declare class Table {
|
|
|
477
477
|
setUnit: (unit: Tile, meep?: boolean) => void;
|
|
478
478
|
tile: Tile | undefined;
|
|
479
479
|
meep: import("./meeple").Meeple | undefined;
|
|
480
|
-
constructorCode: (map:
|
|
480
|
+
constructorCode: (map: HexM<{
|
|
481
481
|
implementsIHex2: boolean;
|
|
482
482
|
readonly cont: import("./hex").HexCont;
|
|
483
483
|
readonly radius: number;
|
|
@@ -537,20 +537,20 @@ export declare class Table {
|
|
|
537
537
|
_district: number | undefined;
|
|
538
538
|
readonly isOnMap: boolean;
|
|
539
539
|
_isLegal: boolean;
|
|
540
|
-
readonly map:
|
|
540
|
+
readonly map: HexM<Hex>;
|
|
541
541
|
readonly row: number;
|
|
542
542
|
readonly col: number;
|
|
543
543
|
readonly links: import("./hex").LINKS<import("./hex").Hex2>;
|
|
544
544
|
metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
|
|
545
545
|
readonly linkDirs: import("./hex-intfs").HexDir[];
|
|
546
546
|
readonly linkHexes: (import("./hex").Hex2 | undefined)[];
|
|
547
|
-
forEachLinkHex: (func: (hex:
|
|
547
|
+
forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
|
|
548
548
|
findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
|
|
549
|
-
findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex:
|
|
549
|
+
findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex").Hex2 | undefined;
|
|
550
550
|
hexesInDir: (dir: import("./hex-intfs").HexDir, rv?: import("./hex").Hex2[]) => import("./hex").Hex2[];
|
|
551
551
|
forEachHexDir: (func: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => unknown) => void;
|
|
552
|
-
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) =>
|
|
553
|
-
lastHex: (ds: import("./hex-intfs").HexDir) =>
|
|
552
|
+
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) => import("./hex").Hex2 | undefined;
|
|
553
|
+
lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
|
|
554
554
|
radialDist: (hex: Hex) => number;
|
|
555
555
|
}>, row: number, col: number, name?: string | undefined) => void;
|
|
556
556
|
showText: (vis?: boolean) => void;
|
|
@@ -594,20 +594,20 @@ export declare class Table {
|
|
|
594
594
|
_district: number | undefined;
|
|
595
595
|
readonly isOnMap: boolean;
|
|
596
596
|
_isLegal: boolean;
|
|
597
|
-
readonly map:
|
|
597
|
+
readonly map: HexM<Hex>;
|
|
598
598
|
readonly row: number;
|
|
599
599
|
readonly col: number;
|
|
600
600
|
readonly links: import("./hex").LINKS<import("./hex").Hex2>;
|
|
601
601
|
metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
|
|
602
602
|
readonly linkDirs: import("./hex-intfs").HexDir[];
|
|
603
603
|
readonly linkHexes: (import("./hex").Hex2 | undefined)[];
|
|
604
|
-
forEachLinkHex: (func: (hex:
|
|
604
|
+
forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
|
|
605
605
|
findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
|
|
606
|
-
findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex:
|
|
606
|
+
findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex").Hex2 | undefined;
|
|
607
607
|
hexesInDir: (dir: import("./hex-intfs").HexDir, rv?: import("./hex").Hex2[]) => import("./hex").Hex2[];
|
|
608
608
|
forEachHexDir: (func: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => unknown) => void;
|
|
609
|
-
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) =>
|
|
610
|
-
lastHex: (ds: import("./hex-intfs").HexDir) =>
|
|
609
|
+
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) => import("./hex").Hex2 | undefined;
|
|
610
|
+
lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
|
|
611
611
|
radialDist: (hex: Hex) => number;
|
|
612
612
|
};
|
|
613
613
|
/** Params that affect the rules of the game & board
|
|
@@ -629,7 +629,12 @@ export declare class Table {
|
|
|
629
629
|
addDoneButton(actionCont: Container, rh: number): Container;
|
|
630
630
|
/** show player player score on table */
|
|
631
631
|
setPlayerScore(plyr: Player, score: number, rank?: number): void;
|
|
632
|
-
/** update table when a new Game is started.
|
|
632
|
+
/** update table when a new Game is started.
|
|
633
|
+
*
|
|
634
|
+
* default: [allTiles.makeDragable(); setNextPlayer(gamePlay.turnNumber)]
|
|
635
|
+
*
|
|
636
|
+
* A Tile or class of Tile may stopDragging() due to noLegalTargets().
|
|
637
|
+
*/
|
|
633
638
|
startGame(scenario: Scenario): void;
|
|
634
639
|
makeDragable(tile: DisplayObject): void;
|
|
635
640
|
hexUnderObj(dragObj: DisplayObject, legalOnly?: boolean): {
|
|
@@ -650,7 +655,7 @@ export declare class Table {
|
|
|
650
655
|
setUnit: (unit: Tile, meep?: boolean) => void;
|
|
651
656
|
tile: Tile | undefined;
|
|
652
657
|
meep: import("./meeple").Meeple | undefined;
|
|
653
|
-
constructorCode: (map:
|
|
658
|
+
constructorCode: (map: HexM<{
|
|
654
659
|
implementsIHex2: boolean;
|
|
655
660
|
readonly cont: import("./hex").HexCont;
|
|
656
661
|
readonly radius: number;
|
|
@@ -710,20 +715,20 @@ export declare class Table {
|
|
|
710
715
|
_district: number | undefined;
|
|
711
716
|
readonly isOnMap: boolean;
|
|
712
717
|
_isLegal: boolean;
|
|
713
|
-
readonly map:
|
|
718
|
+
readonly map: HexM<Hex>;
|
|
714
719
|
readonly row: number;
|
|
715
720
|
readonly col: number;
|
|
716
721
|
readonly links: import("./hex").LINKS<import("./hex").Hex2>;
|
|
717
722
|
metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
|
|
718
723
|
readonly linkDirs: import("./hex-intfs").HexDir[];
|
|
719
724
|
readonly linkHexes: (import("./hex").Hex2 | undefined)[];
|
|
720
|
-
forEachLinkHex: (func: (hex:
|
|
725
|
+
forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
|
|
721
726
|
findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
|
|
722
|
-
findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex:
|
|
727
|
+
findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex").Hex2 | undefined;
|
|
723
728
|
hexesInDir: (dir: import("./hex-intfs").HexDir, rv?: import("./hex").Hex2[]) => import("./hex").Hex2[];
|
|
724
729
|
forEachHexDir: (func: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => unknown) => void;
|
|
725
|
-
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) =>
|
|
726
|
-
lastHex: (ds: import("./hex-intfs").HexDir) =>
|
|
730
|
+
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) => import("./hex").Hex2 | undefined;
|
|
731
|
+
lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
|
|
727
732
|
radialDist: (hex: Hex) => number;
|
|
728
733
|
}>, row: number, col: number, name?: string | undefined) => void;
|
|
729
734
|
showText: (vis?: boolean) => void;
|
|
@@ -767,20 +772,20 @@ export declare class Table {
|
|
|
767
772
|
_district: number | undefined;
|
|
768
773
|
readonly isOnMap: boolean;
|
|
769
774
|
_isLegal: boolean;
|
|
770
|
-
readonly map:
|
|
775
|
+
readonly map: HexM<Hex>;
|
|
771
776
|
readonly row: number;
|
|
772
777
|
readonly col: number;
|
|
773
778
|
readonly links: import("./hex").LINKS<import("./hex").Hex2>;
|
|
774
779
|
metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
|
|
775
780
|
readonly linkDirs: import("./hex-intfs").HexDir[];
|
|
776
781
|
readonly linkHexes: (import("./hex").Hex2 | undefined)[];
|
|
777
|
-
forEachLinkHex: (func: (hex:
|
|
782
|
+
forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
|
|
778
783
|
findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
|
|
779
|
-
findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex:
|
|
784
|
+
findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex").Hex2 | undefined;
|
|
780
785
|
hexesInDir: (dir: import("./hex-intfs").HexDir, rv?: import("./hex").Hex2[]) => import("./hex").Hex2[];
|
|
781
786
|
forEachHexDir: (func: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => unknown) => void;
|
|
782
|
-
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) =>
|
|
783
|
-
lastHex: (ds: import("./hex-intfs").HexDir) =>
|
|
787
|
+
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) => import("./hex").Hex2 | undefined;
|
|
788
|
+
lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
|
|
784
789
|
radialDist: (hex: Hex) => number;
|
|
785
790
|
} | undefined;
|
|
786
791
|
dragContext: DragContext;
|
|
@@ -813,7 +818,7 @@ export declare class Table {
|
|
|
813
818
|
setUnit: (unit: Tile, meep?: boolean) => void;
|
|
814
819
|
tile: Tile | undefined;
|
|
815
820
|
meep: import("./meeple").Meeple | undefined;
|
|
816
|
-
constructorCode: (map:
|
|
821
|
+
constructorCode: (map: HexM<{
|
|
817
822
|
implementsIHex2: boolean;
|
|
818
823
|
readonly cont: import("./hex").HexCont;
|
|
819
824
|
readonly radius: number;
|
|
@@ -873,20 +878,20 @@ export declare class Table {
|
|
|
873
878
|
_district: number | undefined;
|
|
874
879
|
readonly isOnMap: boolean;
|
|
875
880
|
_isLegal: boolean;
|
|
876
|
-
readonly map:
|
|
881
|
+
readonly map: HexM<Hex>;
|
|
877
882
|
readonly row: number;
|
|
878
883
|
readonly col: number;
|
|
879
884
|
readonly links: import("./hex").LINKS<import("./hex").Hex2>;
|
|
880
885
|
metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
|
|
881
886
|
readonly linkDirs: import("./hex-intfs").HexDir[];
|
|
882
887
|
readonly linkHexes: (import("./hex").Hex2 | undefined)[];
|
|
883
|
-
forEachLinkHex: (func: (hex:
|
|
888
|
+
forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
|
|
884
889
|
findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
|
|
885
|
-
findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex:
|
|
890
|
+
findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex").Hex2 | undefined;
|
|
886
891
|
hexesInDir: (dir: import("./hex-intfs").HexDir, rv?: import("./hex").Hex2[]) => import("./hex").Hex2[];
|
|
887
892
|
forEachHexDir: (func: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => unknown) => void;
|
|
888
|
-
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) =>
|
|
889
|
-
lastHex: (ds: import("./hex-intfs").HexDir) =>
|
|
893
|
+
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) => import("./hex").Hex2 | undefined;
|
|
894
|
+
lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
|
|
890
895
|
radialDist: (hex: Hex) => number;
|
|
891
896
|
}>, row: number, col: number, name?: string | undefined) => void;
|
|
892
897
|
showText: (vis?: boolean) => void;
|
|
@@ -930,20 +935,20 @@ export declare class Table {
|
|
|
930
935
|
_district: number | undefined;
|
|
931
936
|
readonly isOnMap: boolean;
|
|
932
937
|
_isLegal: boolean;
|
|
933
|
-
readonly map:
|
|
938
|
+
readonly map: HexM<Hex>;
|
|
934
939
|
readonly row: number;
|
|
935
940
|
readonly col: number;
|
|
936
941
|
readonly links: import("./hex").LINKS<import("./hex").Hex2>;
|
|
937
942
|
metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
|
|
938
943
|
readonly linkDirs: import("./hex-intfs").HexDir[];
|
|
939
944
|
readonly linkHexes: (import("./hex").Hex2 | undefined)[];
|
|
940
|
-
forEachLinkHex: (func: (hex:
|
|
945
|
+
forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
|
|
941
946
|
findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
|
|
942
|
-
findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex:
|
|
947
|
+
findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex").Hex2 | undefined;
|
|
943
948
|
hexesInDir: (dir: import("./hex-intfs").HexDir, rv?: import("./hex").Hex2[]) => import("./hex").Hex2[];
|
|
944
949
|
forEachHexDir: (func: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => unknown) => void;
|
|
945
|
-
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) =>
|
|
946
|
-
lastHex: (ds: import("./hex-intfs").HexDir) =>
|
|
950
|
+
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) => import("./hex").Hex2 | undefined;
|
|
951
|
+
lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
|
|
947
952
|
radialDist: (hex: Hex) => number;
|
|
948
953
|
} | undefined): void;
|
|
949
954
|
/** invoke dragShift callback if shift state changes */
|
|
@@ -985,7 +990,7 @@ export declare class Table {
|
|
|
985
990
|
setUnit: (unit: Tile, meep?: boolean) => void;
|
|
986
991
|
tile: Tile | undefined;
|
|
987
992
|
meep: import("./meeple").Meeple | undefined;
|
|
988
|
-
constructorCode: (map:
|
|
993
|
+
constructorCode: (map: HexM<{
|
|
989
994
|
implementsIHex2: boolean;
|
|
990
995
|
readonly cont: import("./hex").HexCont;
|
|
991
996
|
readonly radius: number;
|
|
@@ -1045,20 +1050,20 @@ export declare class Table {
|
|
|
1045
1050
|
_district: number | undefined;
|
|
1046
1051
|
readonly isOnMap: boolean;
|
|
1047
1052
|
_isLegal: boolean;
|
|
1048
|
-
readonly map:
|
|
1053
|
+
readonly map: HexM<Hex>;
|
|
1049
1054
|
readonly row: number;
|
|
1050
1055
|
readonly col: number;
|
|
1051
1056
|
readonly links: import("./hex").LINKS<import("./hex").Hex2>;
|
|
1052
1057
|
metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
|
|
1053
1058
|
readonly linkDirs: import("./hex-intfs").HexDir[];
|
|
1054
1059
|
readonly linkHexes: (import("./hex").Hex2 | undefined)[];
|
|
1055
|
-
forEachLinkHex: (func: (hex:
|
|
1060
|
+
forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
|
|
1056
1061
|
findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
|
|
1057
|
-
findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex:
|
|
1062
|
+
findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex").Hex2 | undefined;
|
|
1058
1063
|
hexesInDir: (dir: import("./hex-intfs").HexDir, rv?: import("./hex").Hex2[]) => import("./hex").Hex2[];
|
|
1059
1064
|
forEachHexDir: (func: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => unknown) => void;
|
|
1060
|
-
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) =>
|
|
1061
|
-
lastHex: (ds: import("./hex-intfs").HexDir) =>
|
|
1065
|
+
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) => import("./hex").Hex2 | undefined;
|
|
1066
|
+
lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
|
|
1062
1067
|
radialDist: (hex: Hex) => number;
|
|
1063
1068
|
}>, row: number, col: number, name?: string | undefined) => void;
|
|
1064
1069
|
showText: (vis?: boolean) => void;
|
|
@@ -1102,20 +1107,20 @@ export declare class Table {
|
|
|
1102
1107
|
_district: number | undefined;
|
|
1103
1108
|
readonly isOnMap: boolean;
|
|
1104
1109
|
_isLegal: boolean;
|
|
1105
|
-
readonly map:
|
|
1110
|
+
readonly map: HexM<Hex>;
|
|
1106
1111
|
readonly row: number;
|
|
1107
1112
|
readonly col: number;
|
|
1108
1113
|
readonly links: import("./hex").LINKS<import("./hex").Hex2>;
|
|
1109
1114
|
metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
|
|
1110
1115
|
readonly linkDirs: import("./hex-intfs").HexDir[];
|
|
1111
1116
|
readonly linkHexes: (import("./hex").Hex2 | undefined)[];
|
|
1112
|
-
forEachLinkHex: (func: (hex:
|
|
1117
|
+
forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
|
|
1113
1118
|
findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
|
|
1114
|
-
findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex:
|
|
1119
|
+
findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex").Hex2 | undefined;
|
|
1115
1120
|
hexesInDir: (dir: import("./hex-intfs").HexDir, rv?: import("./hex").Hex2[]) => import("./hex").Hex2[];
|
|
1116
1121
|
forEachHexDir: (func: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => unknown) => void;
|
|
1117
|
-
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) =>
|
|
1118
|
-
lastHex: (ds: import("./hex-intfs").HexDir) =>
|
|
1122
|
+
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) => import("./hex").Hex2 | undefined;
|
|
1123
|
+
lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
|
|
1119
1124
|
radialDist: (hex: Hex) => number;
|
|
1120
1125
|
} | undefined): void;
|
|
1121
1126
|
/** synthesize dragStart(tile), tile.dragFunc0(hex), dropFunc(tile); */
|
|
@@ -1143,7 +1148,7 @@ export declare class Table {
|
|
|
1143
1148
|
setUnit: (unit: Tile, meep?: boolean) => void;
|
|
1144
1149
|
tile: Tile | undefined;
|
|
1145
1150
|
meep: import("./meeple").Meeple | undefined;
|
|
1146
|
-
constructorCode: (map:
|
|
1151
|
+
constructorCode: (map: HexM<{
|
|
1147
1152
|
implementsIHex2: boolean;
|
|
1148
1153
|
readonly cont: import("./hex").HexCont;
|
|
1149
1154
|
readonly radius: number;
|
|
@@ -1203,20 +1208,20 @@ export declare class Table {
|
|
|
1203
1208
|
_district: number | undefined;
|
|
1204
1209
|
readonly isOnMap: boolean;
|
|
1205
1210
|
_isLegal: boolean;
|
|
1206
|
-
readonly map:
|
|
1211
|
+
readonly map: HexM<Hex>;
|
|
1207
1212
|
readonly row: number;
|
|
1208
1213
|
readonly col: number;
|
|
1209
1214
|
readonly links: import("./hex").LINKS<import("./hex").Hex2>;
|
|
1210
1215
|
metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
|
|
1211
1216
|
readonly linkDirs: import("./hex-intfs").HexDir[];
|
|
1212
1217
|
readonly linkHexes: (import("./hex").Hex2 | undefined)[];
|
|
1213
|
-
forEachLinkHex: (func: (hex:
|
|
1218
|
+
forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
|
|
1214
1219
|
findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
|
|
1215
|
-
findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex:
|
|
1220
|
+
findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex").Hex2 | undefined;
|
|
1216
1221
|
hexesInDir: (dir: import("./hex-intfs").HexDir, rv?: import("./hex").Hex2[]) => import("./hex").Hex2[];
|
|
1217
1222
|
forEachHexDir: (func: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => unknown) => void;
|
|
1218
|
-
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) =>
|
|
1219
|
-
lastHex: (ds: import("./hex-intfs").HexDir) =>
|
|
1223
|
+
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) => import("./hex").Hex2 | undefined;
|
|
1224
|
+
lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
|
|
1220
1225
|
radialDist: (hex: Hex) => number;
|
|
1221
1226
|
}>, row: number, col: number, name?: string | undefined) => void;
|
|
1222
1227
|
showText: (vis?: boolean) => void;
|
|
@@ -1260,20 +1265,20 @@ export declare class Table {
|
|
|
1260
1265
|
_district: number | undefined;
|
|
1261
1266
|
readonly isOnMap: boolean;
|
|
1262
1267
|
_isLegal: boolean;
|
|
1263
|
-
readonly map:
|
|
1268
|
+
readonly map: HexM<Hex>;
|
|
1264
1269
|
readonly row: number;
|
|
1265
1270
|
readonly col: number;
|
|
1266
1271
|
readonly links: import("./hex").LINKS<import("./hex").Hex2>;
|
|
1267
1272
|
metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
|
|
1268
1273
|
readonly linkDirs: import("./hex-intfs").HexDir[];
|
|
1269
1274
|
readonly linkHexes: (import("./hex").Hex2 | undefined)[];
|
|
1270
|
-
forEachLinkHex: (func: (hex:
|
|
1275
|
+
forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
|
|
1271
1276
|
findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
|
|
1272
|
-
findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex:
|
|
1277
|
+
findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex").Hex2 | undefined;
|
|
1273
1278
|
hexesInDir: (dir: import("./hex-intfs").HexDir, rv?: import("./hex").Hex2[]) => import("./hex").Hex2[];
|
|
1274
1279
|
forEachHexDir: (func: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => unknown) => void;
|
|
1275
|
-
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) =>
|
|
1276
|
-
lastHex: (ds: import("./hex-intfs").HexDir) =>
|
|
1280
|
+
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) => import("./hex").Hex2 | undefined;
|
|
1281
|
+
lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
|
|
1277
1282
|
radialDist: (hex: Hex) => number;
|
|
1278
1283
|
} | undefined): void;
|
|
1279
1284
|
/** Toggle dragging: dragTarget(target) OR stopDragging(targetHex)
|
package/dist/table.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../src/table.ts"],"names":[],"mappings":";;;AAAA,OAAO,EAAqB,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAgB,QAAQ,EAAgB,kBAAkB,EAAS,EAAE,EAAE,MAAM,uBAAuB,CAAC;AAC9K,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,eAAe,EAAwB,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAC/H,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,GAAG,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../src/table.ts"],"names":[],"mappings":";;;AAAA,OAAO,EAAqB,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAgB,QAAQ,EAA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,SAAS,EAAE,mBAAmB,CAAC;IACxC;;OAEG;IACH,aAAa,CAAC,QAAQ,EAAE,OAAO;IAkB/B,+DAA+D;IAC/D,aAAa,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,SAAa;IAQnE,IAAI,CAAC,CAAC,SAAM;IAUZ,GAAG,CAAC,EAAE,EAAE,EAAE;IAMV;;;;;;;OAOG;IAEH,eAAe,CAAC,MAAM,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,SAAK;CAwCjG;AAED,cAAM,mBAAoB,SAAQ,kBAAkB;CAEnD"}
|
package/dist/table.js
CHANGED
|
@@ -558,14 +558,18 @@ export class Table {
|
|
|
558
558
|
/** show player player score on table */
|
|
559
559
|
setPlayerScore(plyr, score, rank) {
|
|
560
560
|
}
|
|
561
|
-
/** update table when a new Game is started.
|
|
561
|
+
/** update table when a new Game is started.
|
|
562
|
+
*
|
|
563
|
+
* default: [allTiles.makeDragable(); setNextPlayer(gamePlay.turnNumber)]
|
|
564
|
+
*
|
|
565
|
+
* A Tile or class of Tile may stopDragging() due to noLegalTargets().
|
|
566
|
+
*/
|
|
562
567
|
startGame(scenario) {
|
|
563
|
-
// All Tiles (& Meeple) are Dragable:
|
|
568
|
+
// All Tiles (& Meeple) are Dragable: (Note: if noLegal then stopDragging)
|
|
564
569
|
Tile.allTiles.forEach(tile => {
|
|
565
570
|
this.makeDragable(tile);
|
|
566
571
|
});
|
|
567
572
|
// this.stage.enableMouseOver(10);
|
|
568
|
-
this.scaleCont.addChild(this.overlayCont); // now at top of the list.
|
|
569
573
|
this.gamePlay.setNextPlayer(this.gamePlay.turnNumber > 0 ? this.gamePlay.turnNumber : 0);
|
|
570
574
|
}
|
|
571
575
|
makeDragable(tile) {
|