MCPcopy
hub / github.com/FreezingMoon/AncientBeast / QueryOptions

Interface QueryOptions

src/utility/hexgrid.ts:34–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34export interface QueryOptions {
35 /**
36 * Target team.
37 */
38 team: Team;
39
40 /**
41 * Disable a choice if it does not contain a creature matching the team argument.
42 */
43 requireCreature: boolean;
44 id: number;
45 flipped: boolean;
46 x: number;
47 y: number;
48 hexesDashed: Hex[];
49 dashedHexesUnderCreature: boolean;
50 fillOnlyHoveredCreature: boolean;
51 shrunkenHexes: Hex[];
52 hexesDeadZone: Hex[];
53 directions: number[];
54 includeCreature: boolean;
55 stopOnCreature: boolean;
56 pierceNumber: number;
57 pierceThroughBehavior: string;
58
59 /**
60 * If defined, maximum distance of query in hexes.
61 */
62 distance: number;
63
64 /**
65 * If defined, minimum distance of query, 1 = 1 hex gap required.
66 */
67 minDistance: number;
68
69 isDirectionsQuery: boolean;
70
71 /**
72 * After this distance, the direction choice will be be visualised by shrunken hexes.
73 * This visual state represents the ability having its effectiveness being reduced
74 * in some way (falling off).
75 */
76 distanceFalloff: number;
77
78 /**
79 * If a choice line stops on a creature via @param stopOnCreature, display
80 * dashed hexes after the creature up until the next obstacle
81 */
82 dashedHexesAfterCreatureStop: boolean;
83
84 /**
85 * Limit the length of dashed hexes added by @param dashedHexesAfterCreatureStop
86 */
87 dashedHexesDistance: number;
88
89 sourceCreature: Creature;
90 choices: Hex[][];
91

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected