Files
tower/ts/tile.ts
2021-05-11 03:23:28 +00:00

12 lines
293 B
TypeScript

export abstract class Tile {
elem: HTMLElement;
constructor(width: number, height: number) {
this.elem = document.createElement('div');
this.elem.style.gridColumnEnd = `span ${width}`;
this.elem.style.gridRowEnd = `span ${height}`;
}
abstract play(name: string): void;
}