UNPKG

doggo-quest-logic

Version:

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

25 lines (24 loc) 1.16 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const DiningObject_1 = require("../KitchenArea/DiningObject"); const LivingRoomObject_1 = require("../KitchenArea/LivingRoomObject"); const Room_1 = require("../Room"); const RoomBase_1 = require("../RoomBase"); class LivingRoom extends RoomBase_1.RoomBase { constructor() { super('Living Room', Room_1.Room.Living); this.west = Room_1.Room.Dining; this.in = Room_1.Room.UnderCouch; this.under = Room_1.Room.UnderCouch; this.objects = [ new LivingRoomObject_1.LivingRoomObject(Room_1.Room.Living), new DiningObject_1.DiningObject(Room_1.Room.Living) ]; } describe(context) { context.addText(`This is where mommy and daddy spend most of their time when they're home. They call it the living room, but it's ` + `really just a big room with a couch, a table, a TV, and my box of toys.`); context.addText(`The dining room is back to the west, and sometimes I like to go inside the couch and rest there.`); } } exports.LivingRoom = LivingRoom;