doggo-quest-logic
Version:
The game logic for the Doggo Quest text-based game sample project
21 lines (20 loc) • 683 B
TypeScript
import { GameObject, objectResponse } from './GameObject';
import { Room } from './Room';
export declare abstract class GameObjectBase implements GameObject {
protected TooFarMessage: string;
protected CantBeSeriousMessage: string;
protected constructor(name: string);
name: objectResponse;
look: objectResponse;
push: objectResponse;
pull: objectResponse;
open: objectResponse;
smell: objectResponse;
take: objectResponse;
eat: objectResponse;
lick: objectResponse;
think: objectResponse;
children: GameObject[];
matches(reduced: string, room: Room): boolean;
getRoomMapping(): Room | undefined;
}