doggo-quest-logic
Version:
The game logic for the Doggo Quest text-based game sample project
18 lines (17 loc) • 494 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class GameObjectBase {
constructor(name) {
this.TooFarMessage = `You can't do that from here!`;
this.CantBeSeriousMessage = `You can't be serious!`;
this.children = [];
this.name = name;
}
matches(reduced, room) {
return reduced === this.name;
}
getRoomMapping() {
return undefined;
}
}
exports.GameObjectBase = GameObjectBase;