Refactor player and room to support adding effects.

This commit is contained in:
2021-05-25 16:02:06 -07:00
parent b3058097b4
commit ccd4974266
13 changed files with 198 additions and 79 deletions

18
Game.ts Normal file
View File

@ -0,0 +1,18 @@
import type Player from "./Player.ts";
import type Scene from "./Scene.ts";
export default class Game {
#player: Player;
#scene: Scene;
constructor(player: Player, scene: Scene) {
this.#player = player;
this.#scene = scene;
}
lookAtScene(): string {
const { effects } = this.#player;
return this.#scene.look(effects);
}
}