Tower class hierarchy

This commit is contained in:
Ian Gulliver
2021-05-11 02:57:17 +00:00
parent 495aeb6204
commit 0ff24fe806
28 changed files with 346 additions and 279 deletions

13
ts/tile.ts Normal file
View File

@@ -0,0 +1,13 @@
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}`;
}
get_elem(): HTMLElement {
return this.elem;
}
}