doggo-quest-logic
Version:
The game logic for the Doggo Quest text-based game sample project
28 lines (27 loc) • 1.15 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const ChairObject_1 = require("./ChairObject");
const CrateObject_1 = require("./CrateObject");
const Room_1 = require("../Room");
const RoomBase_1 = require("../RoomBase");
const WindowObject_1 = require("./WindowObject");
class Office extends RoomBase_1.RoomBase {
constructor() {
super('Office', Room_1.Room.Office);
this.objects = [
new CrateObject_1.CrateObject(this.id),
new WindowObject_1.WindowObject(this.id),
new ChairObject_1.ChairObject(this.id)
];
this.east = Room_1.Room.Entryway;
this.south = Room_1.Room.InCrate;
this.up = Room_1.Room.OnChair;
this.in = Room_1.Room.InCrate;
}
describe(context) {
context.addText(`The office is a small area where mommy likes to do some of her work. She's not here, so the only things of interest ` +
`are your crate to the south and as a rocking chair overlooking a window.`);
context.addText(`The rest of the house is to the east.`);
}
}
exports.Office = Office;