doggo-quest-logic
Version:
The game logic for the Doggo Quest text-based game sample project
20 lines (19 loc) • 921 B
TypeScript
import { CommandContext } from '../CommandContext';
export declare class VerbHandler {
private static handleVerb;
private static handleTargetedVerb;
handleLook(context: CommandContext): boolean;
handleEat(context: CommandContext): boolean;
handlePush(context: CommandContext): boolean;
handleListen(context: CommandContext): boolean;
handleSmell(context: CommandContext): boolean;
handleThinkAbout(context: CommandContext): boolean;
handleGo(context: CommandContext): boolean;
handleBark(context: CommandContext): boolean;
handleDebug(context: CommandContext): boolean;
handleGet(context: CommandContext): boolean;
handleTaste(context: CommandContext): boolean;
handlePotty(context: CommandContext): boolean;
handleRestart(context: CommandContext): boolean;
getHandler(verb: string): (context: CommandContext) => (boolean | undefined);
}