doggo-quest-logic
Version:
The game logic for the Doggo Quest text-based game sample project
21 lines (20 loc) • 1.15 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const GameObjectBase_1 = require("../GameObjectBase");
const WindowObject_1 = require("../OfficeArea/WindowObject");
class BackDoorObject extends GameObjectBase_1.GameObjectBase {
constructor(room) {
super('door');
this.children = [
new WindowObject_1.WindowObject(room),
];
this.look = 'The door has a large window that lets you see outside. The latch is well out of reach and beyond your ability to operate.';
this.smell = 'The door smells like outside - and freedom.';
this.lick = 'The door isn\'t really that tasty';
this.eat = 'The door isn\'t really that tasty';
this.think = 'Mommy and daddy open that door and put me on a leash when it\'s time to go potty.';
this.push = 'You pound on the door repeatedly with your paw. This normally gets daddy to take you out, but nobody responds.';
this.pull = 'There\'s nothing to grab hold of, and besides, it\'s locked and the latch is well out of reach.';
}
}
exports.BackDoorObject = BackDoorObject;