UNPKG

@gamepark/rules-api

Version:

API to implement the rules of a board game

12 lines (11 loc) 564 B
import { Material, MaterialItem } from '../../items'; import { LocationStrategy } from './LocationStrategy'; /** * This strategy attributes the first gap in a sequence, and leaves a gap when an item is removed. * Use for river-type mechanisms for instance. */ export declare class FillGapStrategy<P extends number = number, M extends number = number, L extends number = number> implements LocationStrategy<P, M, L> { axis: 'x' | 'y' | 'z'; constructor(axis?: 'x' | 'y' | 'z'); addItem(material: Material<P, M, L>, item: MaterialItem<P, L>): void; }