@thegraid/hexlib 1.2.16 → 1.3.2

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/table.d.ts CHANGED
@@ -117,7 +117,7 @@ export declare class Table extends Dispatcher {
117
117
  /** all the non-map hexes created by newHex2 */
118
118
  newHexes: IHex2[];
119
119
  newHex2(row: number | undefined, col: number | undefined, name: string, claz?: Constructor<IHex2>, sy?: number): {
120
- implementsIHex2: boolean;
120
+ readonly implementsIHex2: true;
121
121
  readonly cont: import("./hex").HexCont;
122
122
  readonly radius: number;
123
123
  readonly hexShape: HexShape;
@@ -131,11 +131,8 @@ export declare class Table extends Dispatcher {
131
131
  distColor: string;
132
132
  distText: Text;
133
133
  rcText: Text;
134
- setUnit: (unit: Tile, isMeep?: boolean) => void;
135
- tile: Tile | undefined;
136
- meep: import("./meeple").Meeple | undefined;
137
134
  constructorCode: (map: HexM<{
138
- implementsIHex2: boolean;
135
+ readonly implementsIHex2: true;
139
136
  readonly cont: import("./hex").HexCont;
140
137
  readonly radius: number;
141
138
  readonly hexShape: HexShape;
@@ -149,14 +146,12 @@ export declare class Table extends Dispatcher {
149
146
  distColor: string;
150
147
  distText: Text;
151
148
  rcText: Text;
152
- setUnit: (unit: Tile, isMeep?: boolean) => void;
153
- tile: Tile | undefined;
154
- meep: import("./meeple").Meeple | undefined;
155
149
  constructorCode: any;
156
150
  setRcText: (row: number, col: number, rcf?: number) => void;
157
151
  setDistText: (dText?: string, size?: number) => void;
158
152
  showText: (vis?: boolean) => void;
159
- readonly legalMark: import("./hex").LegalMark;
153
+ makeLegalMark: () => import("./hex").LegalMark;
154
+ legalMark: import("./hex").LegalMark;
160
155
  isLegal: boolean;
161
156
  initCont: (row: number, col: number) => void;
162
157
  makeHexShape: (shape?: Constructor<HexShape>) => HexShape;
@@ -165,10 +160,14 @@ export declare class Table extends Dispatcher {
165
160
  cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, point?: import("@thegraid/easeljs-module").Point, rad?: number) => import("@thegraid/easeljs-module").Point;
166
161
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
167
162
  _tile: import("./tile").MapTile | undefined;
163
+ tile: Tile | undefined;
168
164
  _meep: import("./meeple").Meeple | undefined;
165
+ meep: import("./meeple").Meeple | undefined;
169
166
  readonly occupied: [Tile | undefined, import("./meeple").Meeple | undefined] | undefined;
170
167
  toString: (color?: string) => string;
171
168
  rcspString: (color?: string) => string;
169
+ setUnit: (unit: Tile, isMeep?: boolean) => void;
170
+ unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
172
171
  xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
173
172
  x: number;
174
173
  y: number;
@@ -215,7 +214,8 @@ export declare class Table extends Dispatcher {
215
214
  setRcText: (row: number, col: number, rcf?: number) => void;
216
215
  setDistText: (dText?: string, size?: number) => void;
217
216
  showText: (vis?: boolean) => void;
218
- readonly legalMark: import("./hex").LegalMark;
217
+ makeLegalMark: () => import("./hex").LegalMark;
218
+ legalMark: import("./hex").LegalMark;
219
219
  isLegal: boolean;
220
220
  initCont: (row: number, col: number) => void;
221
221
  makeHexShape: (shape?: Constructor<HexShape>) => HexShape;
@@ -224,10 +224,14 @@ export declare class Table extends Dispatcher {
224
224
  cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, point?: import("@thegraid/easeljs-module").Point, rad?: number) => import("@thegraid/easeljs-module").Point;
225
225
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
226
226
  _tile: import("./tile").MapTile | undefined;
227
+ tile: Tile | undefined;
227
228
  _meep: import("./meeple").Meeple | undefined;
229
+ meep: import("./meeple").Meeple | undefined;
228
230
  readonly occupied: [Tile | undefined, import("./meeple").Meeple | undefined] | undefined;
229
231
  toString: (color?: string) => string;
230
232
  rcspString: (color?: string) => string;
233
+ setUnit: (unit: Tile, isMeep?: boolean) => void;
234
+ unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
231
235
  xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
232
236
  x: number;
233
237
  y: number;
@@ -275,7 +279,7 @@ export declare class Table extends Dispatcher {
275
279
  row: number;
276
280
  col: number;
277
281
  }, claz?: Constructor<IHex2>): {
278
- implementsIHex2: boolean;
282
+ readonly implementsIHex2: true;
279
283
  readonly cont: import("./hex").HexCont;
280
284
  readonly radius: number;
281
285
  readonly hexShape: HexShape;
@@ -289,11 +293,8 @@ export declare class Table extends Dispatcher {
289
293
  distColor: string;
290
294
  distText: Text;
291
295
  rcText: Text;
292
- setUnit: (unit: Tile, isMeep?: boolean) => void;
293
- tile: Tile | undefined;
294
- meep: import("./meeple").Meeple | undefined;
295
296
  constructorCode: (map: HexM<{
296
- implementsIHex2: boolean;
297
+ readonly implementsIHex2: true;
297
298
  readonly cont: import("./hex").HexCont;
298
299
  readonly radius: number;
299
300
  readonly hexShape: HexShape;
@@ -307,14 +308,12 @@ export declare class Table extends Dispatcher {
307
308
  distColor: string;
308
309
  distText: Text;
309
310
  rcText: Text;
310
- setUnit: (unit: Tile, isMeep?: boolean) => void;
311
- tile: Tile | undefined;
312
- meep: import("./meeple").Meeple | undefined;
313
311
  constructorCode: any;
314
312
  setRcText: (row: number, col: number, rcf?: number) => void;
315
313
  setDistText: (dText?: string, size?: number) => void;
316
314
  showText: (vis?: boolean) => void;
317
- readonly legalMark: import("./hex").LegalMark;
315
+ makeLegalMark: () => import("./hex").LegalMark;
316
+ legalMark: import("./hex").LegalMark;
318
317
  isLegal: boolean;
319
318
  initCont: (row: number, col: number) => void;
320
319
  makeHexShape: (shape?: Constructor<HexShape>) => HexShape;
@@ -323,10 +322,14 @@ export declare class Table extends Dispatcher {
323
322
  cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, point?: import("@thegraid/easeljs-module").Point, rad?: number) => import("@thegraid/easeljs-module").Point;
324
323
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
325
324
  _tile: import("./tile").MapTile | undefined;
325
+ tile: Tile | undefined;
326
326
  _meep: import("./meeple").Meeple | undefined;
327
+ meep: import("./meeple").Meeple | undefined;
327
328
  readonly occupied: [Tile | undefined, import("./meeple").Meeple | undefined] | undefined;
328
329
  toString: (color?: string) => string;
329
330
  rcspString: (color?: string) => string;
331
+ setUnit: (unit: Tile, isMeep?: boolean) => void;
332
+ unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
330
333
  xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
331
334
  x: number;
332
335
  y: number;
@@ -373,7 +376,8 @@ export declare class Table extends Dispatcher {
373
376
  setRcText: (row: number, col: number, rcf?: number) => void;
374
377
  setDistText: (dText?: string, size?: number) => void;
375
378
  showText: (vis?: boolean) => void;
376
- readonly legalMark: import("./hex").LegalMark;
379
+ makeLegalMark: () => import("./hex").LegalMark;
380
+ legalMark: import("./hex").LegalMark;
377
381
  isLegal: boolean;
378
382
  initCont: (row: number, col: number) => void;
379
383
  makeHexShape: (shape?: Constructor<HexShape>) => HexShape;
@@ -382,10 +386,14 @@ export declare class Table extends Dispatcher {
382
386
  cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, point?: import("@thegraid/easeljs-module").Point, rad?: number) => import("@thegraid/easeljs-module").Point;
383
387
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
384
388
  _tile: import("./tile").MapTile | undefined;
389
+ tile: Tile | undefined;
385
390
  _meep: import("./meeple").Meeple | undefined;
391
+ meep: import("./meeple").Meeple | undefined;
386
392
  readonly occupied: [Tile | undefined, import("./meeple").Meeple | undefined] | undefined;
387
393
  toString: (color?: string) => string;
388
394
  rcspString: (color?: string) => string;
395
+ setUnit: (unit: Tile, isMeep?: boolean) => void;
396
+ unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
389
397
  xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
390
398
  x: number;
391
399
  y: number;
@@ -534,7 +542,7 @@ export declare class Table extends Dispatcher {
534
542
  makeSquareButton(color: string | undefined, xywh: XYWH, c?: string, fs?: number): Container;
535
543
  /** @deprecated [legacy from hextowns] */
536
544
  makeRecycleHex(row?: number, col?: number, claz?: typeof RecycleHex): {
537
- implementsIHex2: boolean;
545
+ readonly implementsIHex2: true;
538
546
  readonly cont: import("./hex").HexCont;
539
547
  readonly radius: number;
540
548
  readonly hexShape: HexShape;
@@ -548,11 +556,8 @@ export declare class Table extends Dispatcher {
548
556
  distColor: string;
549
557
  distText: Text;
550
558
  rcText: Text;
551
- setUnit: (unit: Tile, isMeep?: boolean) => void;
552
- tile: Tile | undefined;
553
- meep: import("./meeple").Meeple | undefined;
554
559
  constructorCode: (map: HexM<{
555
- implementsIHex2: boolean;
560
+ readonly implementsIHex2: true;
556
561
  readonly cont: import("./hex").HexCont;
557
562
  readonly radius: number;
558
563
  readonly hexShape: HexShape;
@@ -566,14 +571,12 @@ export declare class Table extends Dispatcher {
566
571
  distColor: string;
567
572
  distText: Text;
568
573
  rcText: Text;
569
- setUnit: (unit: Tile, isMeep?: boolean) => void;
570
- tile: Tile | undefined;
571
- meep: import("./meeple").Meeple | undefined;
572
574
  constructorCode: any;
573
575
  setRcText: (row: number, col: number, rcf?: number) => void;
574
576
  setDistText: (dText?: string, size?: number) => void;
575
577
  showText: (vis?: boolean) => void;
576
- readonly legalMark: import("./hex").LegalMark;
578
+ makeLegalMark: () => import("./hex").LegalMark;
579
+ legalMark: import("./hex").LegalMark;
577
580
  isLegal: boolean;
578
581
  initCont: (row: number, col: number) => void;
579
582
  makeHexShape: (shape?: Constructor<HexShape>) => HexShape;
@@ -582,10 +585,14 @@ export declare class Table extends Dispatcher {
582
585
  cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, point?: import("@thegraid/easeljs-module").Point, rad?: number) => import("@thegraid/easeljs-module").Point;
583
586
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
584
587
  _tile: import("./tile").MapTile | undefined;
588
+ tile: Tile | undefined;
585
589
  _meep: import("./meeple").Meeple | undefined;
590
+ meep: import("./meeple").Meeple | undefined;
586
591
  readonly occupied: [Tile | undefined, import("./meeple").Meeple | undefined] | undefined;
587
592
  toString: (color?: string) => string;
588
593
  rcspString: (color?: string) => string;
594
+ setUnit: (unit: Tile, isMeep?: boolean) => void;
595
+ unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
589
596
  xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
590
597
  x: number;
591
598
  y: number;
@@ -632,7 +639,8 @@ export declare class Table extends Dispatcher {
632
639
  setRcText: (row: number, col: number, rcf?: number) => void;
633
640
  setDistText: (dText?: string, size?: number) => void;
634
641
  showText: (vis?: boolean) => void;
635
- readonly legalMark: import("./hex").LegalMark;
642
+ makeLegalMark: () => import("./hex").LegalMark;
643
+ legalMark: import("./hex").LegalMark;
636
644
  isLegal: boolean;
637
645
  initCont: (row: number, col: number) => void;
638
646
  makeHexShape: (shape?: Constructor<HexShape>) => HexShape;
@@ -641,10 +649,14 @@ export declare class Table extends Dispatcher {
641
649
  cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, point?: import("@thegraid/easeljs-module").Point, rad?: number) => import("@thegraid/easeljs-module").Point;
642
650
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
643
651
  _tile: import("./tile").MapTile | undefined;
652
+ tile: Tile | undefined;
644
653
  _meep: import("./meeple").Meeple | undefined;
654
+ meep: import("./meeple").Meeple | undefined;
645
655
  readonly occupied: [Tile | undefined, import("./meeple").Meeple | undefined] | undefined;
646
656
  toString: (color?: string) => string;
647
657
  rcspString: (color?: string) => string;
658
+ setUnit: (unit: Tile, isMeep?: boolean) => void;
659
+ unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
648
660
  xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
649
661
  x: number;
650
662
  y: number;
@@ -728,7 +740,7 @@ export declare class Table extends Dispatcher {
728
740
  */
729
741
  makeDragable(tile: Tile): void;
730
742
  hexUnderObj(dragObj: DisplayObject, legalOnly?: boolean): {
731
- implementsIHex2: boolean;
743
+ readonly implementsIHex2: true;
732
744
  readonly cont: import("./hex").HexCont;
733
745
  readonly radius: number;
734
746
  readonly hexShape: HexShape;
@@ -742,11 +754,8 @@ export declare class Table extends Dispatcher {
742
754
  distColor: string;
743
755
  distText: Text;
744
756
  rcText: Text;
745
- setUnit: (unit: Tile, isMeep?: boolean) => void;
746
- tile: Tile | undefined;
747
- meep: import("./meeple").Meeple | undefined;
748
757
  constructorCode: (map: HexM<{
749
- implementsIHex2: boolean;
758
+ readonly implementsIHex2: true;
750
759
  readonly cont: import("./hex").HexCont;
751
760
  readonly radius: number;
752
761
  readonly hexShape: HexShape;
@@ -760,14 +769,12 @@ export declare class Table extends Dispatcher {
760
769
  distColor: string;
761
770
  distText: Text;
762
771
  rcText: Text;
763
- setUnit: (unit: Tile, isMeep?: boolean) => void;
764
- tile: Tile | undefined;
765
- meep: import("./meeple").Meeple | undefined;
766
772
  constructorCode: any;
767
773
  setRcText: (row: number, col: number, rcf?: number) => void;
768
774
  setDistText: (dText?: string, size?: number) => void;
769
775
  showText: (vis?: boolean) => void;
770
- readonly legalMark: import("./hex").LegalMark;
776
+ makeLegalMark: () => import("./hex").LegalMark;
777
+ legalMark: import("./hex").LegalMark;
771
778
  isLegal: boolean;
772
779
  initCont: (row: number, col: number) => void;
773
780
  makeHexShape: (shape?: Constructor<HexShape>) => HexShape;
@@ -776,10 +783,14 @@ export declare class Table extends Dispatcher {
776
783
  cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, point?: import("@thegraid/easeljs-module").Point, rad?: number) => import("@thegraid/easeljs-module").Point;
777
784
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
778
785
  _tile: import("./tile").MapTile | undefined;
786
+ tile: Tile | undefined;
779
787
  _meep: import("./meeple").Meeple | undefined;
788
+ meep: import("./meeple").Meeple | undefined;
780
789
  readonly occupied: [Tile | undefined, import("./meeple").Meeple | undefined] | undefined;
781
790
  toString: (color?: string) => string;
782
791
  rcspString: (color?: string) => string;
792
+ setUnit: (unit: Tile, isMeep?: boolean) => void;
793
+ unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
783
794
  xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
784
795
  x: number;
785
796
  y: number;
@@ -826,7 +837,8 @@ export declare class Table extends Dispatcher {
826
837
  setRcText: (row: number, col: number, rcf?: number) => void;
827
838
  setDistText: (dText?: string, size?: number) => void;
828
839
  showText: (vis?: boolean) => void;
829
- readonly legalMark: import("./hex").LegalMark;
840
+ makeLegalMark: () => import("./hex").LegalMark;
841
+ legalMark: import("./hex").LegalMark;
830
842
  isLegal: boolean;
831
843
  initCont: (row: number, col: number) => void;
832
844
  makeHexShape: (shape?: Constructor<HexShape>) => HexShape;
@@ -835,10 +847,14 @@ export declare class Table extends Dispatcher {
835
847
  cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, point?: import("@thegraid/easeljs-module").Point, rad?: number) => import("@thegraid/easeljs-module").Point;
836
848
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
837
849
  _tile: import("./tile").MapTile | undefined;
850
+ tile: Tile | undefined;
838
851
  _meep: import("./meeple").Meeple | undefined;
852
+ meep: import("./meeple").Meeple | undefined;
839
853
  readonly occupied: [Tile | undefined, import("./meeple").Meeple | undefined] | undefined;
840
854
  toString: (color?: string) => string;
841
855
  rcspString: (color?: string) => string;
856
+ setUnit: (unit: Tile, isMeep?: boolean) => void;
857
+ unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
842
858
  xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
843
859
  x: number;
844
860
  y: number;
@@ -895,7 +911,7 @@ export declare class Table extends Dispatcher {
895
911
  * @param hex the IHex2 which tile is currently over (may be undefined or off map)
896
912
  */
897
913
  dragFunc0(tile: Tile, info?: DragInfo, hex?: {
898
- implementsIHex2: boolean;
914
+ readonly implementsIHex2: true;
899
915
  readonly cont: import("./hex").HexCont;
900
916
  readonly radius: number;
901
917
  readonly hexShape: HexShape;
@@ -909,11 +925,8 @@ export declare class Table extends Dispatcher {
909
925
  distColor: string;
910
926
  distText: Text;
911
927
  rcText: Text;
912
- setUnit: (unit: Tile, isMeep?: boolean) => void;
913
- tile: Tile | undefined;
914
- meep: import("./meeple").Meeple | undefined;
915
928
  constructorCode: (map: HexM<{
916
- implementsIHex2: boolean;
929
+ readonly implementsIHex2: true;
917
930
  readonly cont: import("./hex").HexCont;
918
931
  readonly radius: number;
919
932
  readonly hexShape: HexShape;
@@ -927,14 +940,12 @@ export declare class Table extends Dispatcher {
927
940
  distColor: string;
928
941
  distText: Text;
929
942
  rcText: Text;
930
- setUnit: (unit: Tile, isMeep?: boolean) => void;
931
- tile: Tile | undefined;
932
- meep: import("./meeple").Meeple | undefined;
933
943
  constructorCode: any;
934
944
  setRcText: (row: number, col: number, rcf?: number) => void;
935
945
  setDistText: (dText?: string, size?: number) => void;
936
946
  showText: (vis?: boolean) => void;
937
- readonly legalMark: import("./hex").LegalMark;
947
+ makeLegalMark: () => import("./hex").LegalMark;
948
+ legalMark: import("./hex").LegalMark;
938
949
  isLegal: boolean;
939
950
  initCont: (row: number, col: number) => void;
940
951
  makeHexShape: (shape?: Constructor<HexShape>) => HexShape;
@@ -943,10 +954,14 @@ export declare class Table extends Dispatcher {
943
954
  cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, point?: import("@thegraid/easeljs-module").Point, rad?: number) => import("@thegraid/easeljs-module").Point;
944
955
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
945
956
  _tile: import("./tile").MapTile | undefined;
957
+ tile: Tile | undefined;
946
958
  _meep: import("./meeple").Meeple | undefined;
959
+ meep: import("./meeple").Meeple | undefined;
947
960
  readonly occupied: [Tile | undefined, import("./meeple").Meeple | undefined] | undefined;
948
961
  toString: (color?: string) => string;
949
962
  rcspString: (color?: string) => string;
963
+ setUnit: (unit: Tile, isMeep?: boolean) => void;
964
+ unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
950
965
  xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
951
966
  x: number;
952
967
  y: number;
@@ -993,7 +1008,8 @@ export declare class Table extends Dispatcher {
993
1008
  setRcText: (row: number, col: number, rcf?: number) => void;
994
1009
  setDistText: (dText?: string, size?: number) => void;
995
1010
  showText: (vis?: boolean) => void;
996
- readonly legalMark: import("./hex").LegalMark;
1011
+ makeLegalMark: () => import("./hex").LegalMark;
1012
+ legalMark: import("./hex").LegalMark;
997
1013
  isLegal: boolean;
998
1014
  initCont: (row: number, col: number) => void;
999
1015
  makeHexShape: (shape?: Constructor<HexShape>) => HexShape;
@@ -1002,10 +1018,14 @@ export declare class Table extends Dispatcher {
1002
1018
  cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, point?: import("@thegraid/easeljs-module").Point, rad?: number) => import("@thegraid/easeljs-module").Point;
1003
1019
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
1004
1020
  _tile: import("./tile").MapTile | undefined;
1021
+ tile: Tile | undefined;
1005
1022
  _meep: import("./meeple").Meeple | undefined;
1023
+ meep: import("./meeple").Meeple | undefined;
1006
1024
  readonly occupied: [Tile | undefined, import("./meeple").Meeple | undefined] | undefined;
1007
1025
  toString: (color?: string) => string;
1008
1026
  rcspString: (color?: string) => string;
1027
+ setUnit: (unit: Tile, isMeep?: boolean) => void;
1028
+ unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
1009
1029
  xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
1010
1030
  x: number;
1011
1031
  y: number;
@@ -1067,11 +1087,18 @@ export declare class Table extends Dispatcher {
1067
1087
  * @param ctx DragContext with shift/ctrl from table.dragFunc0()
1068
1088
  */
1069
1089
  dragStart(tile: Tile, ctx: DragContext): void;
1090
+ /** invoked during dragStart(tile, ctx)
1091
+ *
1092
+ * set hex.isLegal = v ==> hex.legalMark.visible = v
1093
+ *
1094
+ * @return number of hexes marked as legal
1095
+ */
1096
+ markLegalHexes(tile: Tile, ctx: DragContext): number;
1070
1097
  /** state of shiftKey has changed during drag. call tile.dragShift(). */
1071
1098
  dragShift(tile: Tile | undefined, shiftKey: boolean | undefined, ctx: DragContext): void;
1072
1099
  /** dropFunc for each Dragable/Tile -> tile.dropFunc0(hex, ctx) */
1073
1100
  dropFunc(dobj: DisplayObject, info?: DragInfo, hex?: {
1074
- implementsIHex2: boolean;
1101
+ readonly implementsIHex2: true;
1075
1102
  readonly cont: import("./hex").HexCont;
1076
1103
  readonly radius: number;
1077
1104
  readonly hexShape: HexShape;
@@ -1085,11 +1112,8 @@ export declare class Table extends Dispatcher {
1085
1112
  distColor: string;
1086
1113
  distText: Text;
1087
1114
  rcText: Text;
1088
- setUnit: (unit: Tile, isMeep?: boolean) => void;
1089
- tile: Tile | undefined;
1090
- meep: import("./meeple").Meeple | undefined;
1091
1115
  constructorCode: (map: HexM<{
1092
- implementsIHex2: boolean;
1116
+ readonly implementsIHex2: true;
1093
1117
  readonly cont: import("./hex").HexCont;
1094
1118
  readonly radius: number;
1095
1119
  readonly hexShape: HexShape;
@@ -1103,14 +1127,12 @@ export declare class Table extends Dispatcher {
1103
1127
  distColor: string;
1104
1128
  distText: Text;
1105
1129
  rcText: Text;
1106
- setUnit: (unit: Tile, isMeep?: boolean) => void;
1107
- tile: Tile | undefined;
1108
- meep: import("./meeple").Meeple | undefined;
1109
1130
  constructorCode: any;
1110
1131
  setRcText: (row: number, col: number, rcf?: number) => void;
1111
1132
  setDistText: (dText?: string, size?: number) => void;
1112
1133
  showText: (vis?: boolean) => void;
1113
- readonly legalMark: import("./hex").LegalMark;
1134
+ makeLegalMark: () => import("./hex").LegalMark;
1135
+ legalMark: import("./hex").LegalMark;
1114
1136
  isLegal: boolean;
1115
1137
  initCont: (row: number, col: number) => void;
1116
1138
  makeHexShape: (shape?: Constructor<HexShape>) => HexShape;
@@ -1119,10 +1141,14 @@ export declare class Table extends Dispatcher {
1119
1141
  cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, point?: import("@thegraid/easeljs-module").Point, rad?: number) => import("@thegraid/easeljs-module").Point;
1120
1142
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
1121
1143
  _tile: import("./tile").MapTile | undefined;
1144
+ tile: Tile | undefined;
1122
1145
  _meep: import("./meeple").Meeple | undefined;
1146
+ meep: import("./meeple").Meeple | undefined;
1123
1147
  readonly occupied: [Tile | undefined, import("./meeple").Meeple | undefined] | undefined;
1124
1148
  toString: (color?: string) => string;
1125
1149
  rcspString: (color?: string) => string;
1150
+ setUnit: (unit: Tile, isMeep?: boolean) => void;
1151
+ unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
1126
1152
  xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
1127
1153
  x: number;
1128
1154
  y: number;
@@ -1169,7 +1195,8 @@ export declare class Table extends Dispatcher {
1169
1195
  setRcText: (row: number, col: number, rcf?: number) => void;
1170
1196
  setDistText: (dText?: string, size?: number) => void;
1171
1197
  showText: (vis?: boolean) => void;
1172
- readonly legalMark: import("./hex").LegalMark;
1198
+ makeLegalMark: () => import("./hex").LegalMark;
1199
+ legalMark: import("./hex").LegalMark;
1173
1200
  isLegal: boolean;
1174
1201
  initCont: (row: number, col: number) => void;
1175
1202
  makeHexShape: (shape?: Constructor<HexShape>) => HexShape;
@@ -1178,10 +1205,14 @@ export declare class Table extends Dispatcher {
1178
1205
  cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, point?: import("@thegraid/easeljs-module").Point, rad?: number) => import("@thegraid/easeljs-module").Point;
1179
1206
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
1180
1207
  _tile: import("./tile").MapTile | undefined;
1208
+ tile: Tile | undefined;
1181
1209
  _meep: import("./meeple").Meeple | undefined;
1210
+ meep: import("./meeple").Meeple | undefined;
1182
1211
  readonly occupied: [Tile | undefined, import("./meeple").Meeple | undefined] | undefined;
1183
1212
  toString: (color?: string) => string;
1184
1213
  rcspString: (color?: string) => string;
1214
+ setUnit: (unit: Tile, isMeep?: boolean) => void;
1215
+ unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
1185
1216
  xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
1186
1217
  x: number;
1187
1218
  y: number;
@@ -1235,7 +1266,7 @@ export declare class Table extends Dispatcher {
1235
1266
  * @param targetHex where to drop Tile [this.dragContext.tile.fromHex]
1236
1267
  */
1237
1268
  stopDragging(targetHex?: {
1238
- implementsIHex2: boolean;
1269
+ readonly implementsIHex2: true;
1239
1270
  readonly cont: import("./hex").HexCont;
1240
1271
  readonly radius: number;
1241
1272
  readonly hexShape: HexShape;
@@ -1249,11 +1280,8 @@ export declare class Table extends Dispatcher {
1249
1280
  distColor: string;
1250
1281
  distText: Text;
1251
1282
  rcText: Text;
1252
- setUnit: (unit: Tile, isMeep?: boolean) => void;
1253
- tile: Tile | undefined;
1254
- meep: import("./meeple").Meeple | undefined;
1255
1283
  constructorCode: (map: HexM<{
1256
- implementsIHex2: boolean;
1284
+ readonly implementsIHex2: true;
1257
1285
  readonly cont: import("./hex").HexCont;
1258
1286
  readonly radius: number;
1259
1287
  readonly hexShape: HexShape;
@@ -1267,14 +1295,12 @@ export declare class Table extends Dispatcher {
1267
1295
  distColor: string;
1268
1296
  distText: Text;
1269
1297
  rcText: Text;
1270
- setUnit: (unit: Tile, isMeep?: boolean) => void;
1271
- tile: Tile | undefined;
1272
- meep: import("./meeple").Meeple | undefined;
1273
1298
  constructorCode: any;
1274
1299
  setRcText: (row: number, col: number, rcf?: number) => void;
1275
1300
  setDistText: (dText?: string, size?: number) => void;
1276
1301
  showText: (vis?: boolean) => void;
1277
- readonly legalMark: import("./hex").LegalMark;
1302
+ makeLegalMark: () => import("./hex").LegalMark;
1303
+ legalMark: import("./hex").LegalMark;
1278
1304
  isLegal: boolean;
1279
1305
  initCont: (row: number, col: number) => void;
1280
1306
  makeHexShape: (shape?: Constructor<HexShape>) => HexShape;
@@ -1283,10 +1309,14 @@ export declare class Table extends Dispatcher {
1283
1309
  cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, point?: import("@thegraid/easeljs-module").Point, rad?: number) => import("@thegraid/easeljs-module").Point;
1284
1310
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
1285
1311
  _tile: import("./tile").MapTile | undefined;
1312
+ tile: Tile | undefined;
1286
1313
  _meep: import("./meeple").Meeple | undefined;
1314
+ meep: import("./meeple").Meeple | undefined;
1287
1315
  readonly occupied: [Tile | undefined, import("./meeple").Meeple | undefined] | undefined;
1288
1316
  toString: (color?: string) => string;
1289
1317
  rcspString: (color?: string) => string;
1318
+ setUnit: (unit: Tile, isMeep?: boolean) => void;
1319
+ unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
1290
1320
  xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
1291
1321
  x: number;
1292
1322
  y: number;
@@ -1333,7 +1363,8 @@ export declare class Table extends Dispatcher {
1333
1363
  setRcText: (row: number, col: number, rcf?: number) => void;
1334
1364
  setDistText: (dText?: string, size?: number) => void;
1335
1365
  showText: (vis?: boolean) => void;
1336
- readonly legalMark: import("./hex").LegalMark;
1366
+ makeLegalMark: () => import("./hex").LegalMark;
1367
+ legalMark: import("./hex").LegalMark;
1337
1368
  isLegal: boolean;
1338
1369
  initCont: (row: number, col: number) => void;
1339
1370
  makeHexShape: (shape?: Constructor<HexShape>) => HexShape;
@@ -1342,10 +1373,14 @@ export declare class Table extends Dispatcher {
1342
1373
  cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, point?: import("@thegraid/easeljs-module").Point, rad?: number) => import("@thegraid/easeljs-module").Point;
1343
1374
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
1344
1375
  _tile: import("./tile").MapTile | undefined;
1376
+ tile: Tile | undefined;
1345
1377
  _meep: import("./meeple").Meeple | undefined;
1378
+ meep: import("./meeple").Meeple | undefined;
1346
1379
  readonly occupied: [Tile | undefined, import("./meeple").Meeple | undefined] | undefined;
1347
1380
  toString: (color?: string) => string;
1348
1381
  rcspString: (color?: string) => string;
1382
+ setUnit: (unit: Tile, isMeep?: boolean) => void;
1383
+ unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
1349
1384
  xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
1350
1385
  x: number;
1351
1386
  y: number;
@@ -1 +1 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../src/table.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAS,WAAW,EAAe,EAAE,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AACjF,OAAO,EAAwC,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAa,cAAc,EAAE,WAAW,EAAE,QAAQ,EAA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iF;IACjF,cAAc,CAAC,GAAG,GAAE,OAAc;IAMlC,aAAa,EAAE,YAAY,CAAA;IAC3B,IAAI,YAAY,iBAGf;IACD;;;;;;OAMG;IACH,WAAW,CAAC,IAAI,EAAE,KAAK;IAGvB;;;;;OAKG;IACH,aAAa,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK;IAMrC,+BAA+B;IAC/B,OAAO,EAAE,MAAM,CAAO;IACtB,8CAA8C;IAC9C,OAAO,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,SAAe;IAG7C,WAAW;;;;;;MAA0E;IAErF,QAAQ,CAAC,SAAS,EAAE,kBAAkB,CAAC;IACvC;;OAEG;IACH,aAAa;IAYb,6CAA6C;IAC7C,QAAQ;IAUR,+DAA+D;IAC/D,aAAa,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,SAAa;IAQnE,KAAK,EAAE,IAAI,CAAuC;IAClD,KAAK,EAAE,IAAI,CAAwD;IACnE;;;;;;;;;;OAUG;IACH,eAAe,CAAC,MAAM,EAAE,kBAAkB,EAAE,GAAG,KAAK,EAAE,IAAI,EAAE;IAuB5D,kEAAkE;IAClE,UAAU,CAAC,EAAE,SAAM,EAAE,EAAE,GAAE,EAAmB,GAAG,MAAM;IAMrD,YAAY,CAAC,EAAE,SAAM,EAAE,EAAE;;;KAAiB;IAU1C,IAAI,CAAC,CAAC,SAAM;IAQZ,GAAG,CAAC,EAAE,EAAE,EAAE;IAKV;;;;;;OAMG;IACH,aAAa;CAWd;AACD,KAAK,IAAI,GAAG,EAAE,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA"}
package/dist/table.js CHANGED
@@ -702,8 +702,11 @@ export class Table extends Dispatcher {
702
702
  if (info?.first) {
703
703
  if (ctx?.tile) {
704
704
  // clickToDrag intercepting a drag in progress!
705
+ // click should have hit the drag target to drop it
705
706
  // mouse not over drag object! fix XY in call to dragTarget()
706
- console.log(stime(this, `.dragFunc: OOPS! adjust XY on dragTarget`), ctx);
707
+ // OR dragger.dragTarget() invoked while drag in progress...
708
+ // OR fail to clear stageDrag/stagemousemove
709
+ console.warn(stime(this, `.dragFunc0: OOPS! maybe adjust XY on dragTarget`), ctx);
707
710
  this.stopDragging(ctx.targetHex); // stop original drag
708
711
  this.dragger.stopDrag(); // stop new drag; this.dropFunc(ctx.tile, ctx.info);
709
712
  return;
@@ -769,20 +772,31 @@ export class Table extends Dispatcher {
769
772
  else {
770
773
  // mark legal targets for tile; SHIFT for all hexes, if payCost
771
774
  tile.dragStart(ctx); // prepare for isLegalTarget
772
- const countLegalHexes = (hex) => {
773
- if (hex !== tile.hex && tile.isLegalTarget(hex, ctx)) {
774
- hex.isLegal = true;
775
- ctx.nLegal += 1;
776
- }
777
- };
778
- tile.markLegal(this, countLegalHexes, ctx); // delegate to check each potential target
779
- tile.moveTo(undefined); // notify source Hex, so it can scale; also triggers nextUnit !!
775
+ ctx.nLegal = this.markLegalHexes(tile, ctx); // override-able
776
+ tile.moveTo(undefined); // notify source Hex, so it can scale;
780
777
  this.hexMap.update();
781
778
  if (ctx.nLegal === 0) {
782
779
  tile.noLegalTarget(ctx);
783
780
  }
784
781
  }
785
782
  }
783
+ /** invoked during dragStart(tile, ctx)
784
+ *
785
+ * set hex.isLegal = v ==> hex.legalMark.visible = v
786
+ *
787
+ * @return number of hexes marked as legal
788
+ */
789
+ markLegalHexes(tile, ctx) {
790
+ let nLegal = 0;
791
+ const countLegalHexes = (hex) => {
792
+ if (hex !== tile.hex && tile.isLegalTarget(hex, ctx)) {
793
+ hex.isLegal = true; // ==> legalMark.visible = true;
794
+ nLegal += 1;
795
+ }
796
+ };
797
+ tile.markLegal(this, countLegalHexes, ctx); // delegate to check each potential target
798
+ return nLegal;
799
+ }
786
800
  /** state of shiftKey has changed during drag. call tile.dragShift(). */
787
801
  dragShift(tile, shiftKey, ctx) {
788
802
  tile?.dragShift(shiftKey, ctx);