UNPKG

@gamepark/rules-api

Version:

API to implement the rules of a board game

13 lines (12 loc) 611 B
import { Material, MaterialItem } from '../../items'; import { LocationStrategy } from './LocationStrategy'; /** * This strategy will only work on items with the same location.x and location.y, to maintain a positive sequence on location.z, * for example to easily stack scoring pawns when they are on the same spot. */ export declare class StackingStrategy implements LocationStrategy { private delegate; addItem(material: Material, item: MaterialItem): void; moveItem(material: Material, item: MaterialItem, index: number): void; removeItem(material: Material, item: MaterialItem): void; }