UNPKG

doggo-quest-logic

Version:

The game logic for the Doggo Quest text-based game sample project

24 lines (23 loc) 975 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const ChairObject_1 = require("./ChairObject"); const CrateObject_1 = require("./CrateObject"); const WindowObject_1 = require("./WindowObject"); const Room_1 = require("../Room"); const RoomBase_1 = require("../RoomBase"); class OnChair extends RoomBase_1.RoomBase { constructor() { super('Office (On Chair)', Room_1.Room.OnChair); this.down = Room_1.Room.Office; this.objects = [ new CrateObject_1.CrateObject(this.id), new WindowObject_1.WindowObject(this.id), new ChairObject_1.ChairObject(this.id) ]; } describe(context) { context.addText(`You're in the office on top of your favorite chair. From here you have a good vantage point to look out the window to the yard outside ` + `and can still see the rest of the office below you.`); } } exports.OnChair = OnChair;