UNPKG

doggo-quest-logic

Version:

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

24 lines (23 loc) 1.04 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const Room_1 = require("../Room"); const RoomBase_1 = require("../RoomBase"); const DiningObject_1 = require("./DiningObject"); const KitchenObject_1 = require("./KitchenObject"); class Kitchen extends RoomBase_1.RoomBase { constructor() { super('Kitchen', Room_1.Room.Kitchen); this.east = Room_1.Room.Dining; this.objects = [ new KitchenObject_1.KitchenObject(Room_1.Room.Kitchen), new DiningObject_1.DiningObject(Room_1.Room.Kitchen) ]; } describe(context) { context.addText(`The kitchen is an amazing place. Mommy cooks food on the counter and sometimes gives me a crumb or two. ` + `Sometimes I can also find crumbs on the floor if I sniff around for them.`); context.addText(`The dining room and the rest of the house is to the east.`); context.addText(`A trashcan and my water bowl are here.`); } } exports.Kitchen = Kitchen;