@logic-pad/core
Version:
34 lines (33 loc) • 1.06 kB
TypeScript
import { AnyConfig } from '../config.js';
import GridData from '../grid.js';
import NumberSymbol from './numberSymbol.js';
export default class HouseSymbol extends NumberSymbol {
readonly x: number;
readonly y: number;
readonly number: number;
readonly title = "House";
private static readonly CONFIGS;
private static readonly EXAMPLE_GRID;
/**
* **Houses must connect to exactly one other house**
*
* @param x - The x-coordinate of the symbol.
* @param y - The y-coordinate of the symbol.
* @param number - The number of houses in this region.
*/
constructor(x: number, y: number, number: number);
get id(): string;
get explanation(): string;
get configs(): readonly AnyConfig[] | null;
createExampleGrid(): GridData;
countTiles(grid: GridData): {
completed: number;
possible: number;
} | null;
copyWith({ x, y, number, }: {
x?: number;
y?: number;
number?: number;
}): this;
}
export declare const instance: HouseSymbol;