doggo-quest-logic
Version:
The game logic for the Doggo Quest text-based game sample project
19 lines (18 loc) • 779 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const GameObjectBase_1 = require("../GameObjectBase");
const Room_1 = require("../Room");
class OfficeObject extends GameObjectBase_1.GameObjectBase {
constructor(room) {
super('office');
this.think = `The office is where I go when it's time to sleep or when I want to watch outside through the window.`;
if (room === Room_1.Room.Entryway) {
this.smell = `In order to really smell it, you'll need to get closer.`;
this.lick = this.TooFarMessage;
this.eat = this.TooFarMessage;
this.push = this.TooFarMessage;
this.pull = this.TooFarMessage;
}
}
}
exports.OfficeObject = OfficeObject;