doggo-quest-logic
Version:
The game logic for the Doggo Quest text-based game sample project
18 lines (17 loc) • 608 B
TypeScript
import { GameResponse } from './Parsing/GameResponse';
import { StoryEntry } from './StoryEntry';
import { GameWorld } from './World/GameWorld';
export declare class StoryEngine {
private readonly mapper;
private readonly verbs;
private readonly parser;
state: GameWorld;
constructor();
score: number;
getInitialEntries(): StoryEntry[];
handlePlayerInput(text: string): StoryEntry[];
getResponseState(command: string): GameResponse;
getResponse(command: string): string;
handleCommands(commands: string[]): GameWorld;
private handleCommand;
}