doggo-quest-logic
Version:
The game logic for the Doggo Quest text-based game sample project
21 lines (20 loc) • 632 B
TypeScript
import { CommandContext } from '../CommandContext';
import { GameObject } from './GameObject';
import { GameRoom } from './GameRoom';
import { Room } from './Room';
export declare abstract class RoomBase implements GameRoom {
displayName: string;
id: Room;
protected constructor(displayName: string, id: Room);
north?: Room;
south?: Room;
west?: Room;
east?: Room;
up?: Room;
down?: Room;
in?: Room;
out?: Room;
abstract objects: GameObject[];
abstract describe(context: CommandContext): void;
tryGo(direction: string, context: CommandContext): boolean;
}