@logic-pad/core
Version:
36 lines (35 loc) • 1.16 kB
TypeScript
import { AnyConfig } from '../config.js';
import GridData from '../grid.js';
import { Direction, State } from '../primitives.js';
import Symbol from './symbol.js';
export type DirectionLinkerMap = {
[key in Direction]: Direction;
};
export default class DirectionLinkerSymbol extends Symbol {
readonly x: number;
readonly y: number;
private static readonly CONFIGS;
private static readonly EXAMPLE_GRID;
private static readonly directionDeltas;
private linkedDirections;
/**
* **Darts count opposite color cells in that direction**
*
* @param x - The x-coordinate of the symbol.
* @param y - The y-coordinate of the symbol.
*/
constructor(x: number, y: number);
changeDirections(linkedDirections: DirectionLinkerMap): this;
get id(): string;
get explanation(): string;
get configs(): readonly AnyConfig[] | null;
createExampleGrid(): GridData;
private deltaCoordinate;
validateSymbol(grid: GridData): State;
copyWith({ x, y }: {
x?: number;
y?: number;
}): this;
private getInitialCheckedCouples;
}
export declare const instance: undefined;