import { GameMap } from "../game-map";

export type BuildingType = 'house' | 'lumberjack' | 'quarry' | 'storage';

export abstract class Building {
    type: BuildingType = 'house';
    readonly map: GameMap;
    buildings: Building[] = [];

    readonly x: number;
    readonly y: number;

    constructor(map: GameMap, x: number, y: number, buildings: Building[]) {
        this.map = map;
        this.x = x;
        this.y = y;
        this.buildings = buildings;
    }


    abstract update(dt: number): void;
}