2021-05-11 02:57:17 +00:00
|
|
|
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}`;
|
|
|
|
|
}
|
|
|
|
|
|
2021-05-11 03:12:32 +00:00
|
|
|
abstract play(name: string): void;
|
2021-05-11 02:57:17 +00:00
|
|
|
}
|