public static Handler ProcessInput(ParsedInput input) { switch (input.Source) { case INPUT_SOURCE.PLAYER: return(Player.ProcessInput(input)); default: return(Handler.UNHANDLED()); } }
public virtual Handler DoAttack(ParsedInput input) { return(Handler.UNHANDLED()); }
public Handler ProcessInput(ParsedInput input) { switch (input.Action) { case ACTION_ENUM.NONE: return(Handler.HANDLED(MESSAGE_ENUM.ERROR_BAD_INPUT)); case ACTION_ENUM.MOVE_BASIC: return(DoMoveBasic(input)); case ACTION_ENUM.MOVE_CONNECTION: return(DoMoveConnection(input)); case ACTION_ENUM.LOOK: return(DoLook(input)); case ACTION_ENUM.OPEN_CONTAINER: return(DoOpen(input)); case ACTION_ENUM.CLOSE_CONTAINER: return(DoClose(input)); case ACTION_ENUM.BUY_ITEM: return(DoBuy(input)); case ACTION_ENUM.SELL_ITEM: return(DoSell(input)); case ACTION_ENUM.PRICE_ITEM: return(DoPrice(input)); case ACTION_ENUM.SHOW_GOLD: return(DoGold(input)); case ACTION_ENUM.GET_ITEM: return(DoGet(input)); case ACTION_ENUM.PUT_ITEM: return(DoPut(input)); case ACTION_ENUM.REMOVE_EQUIPMENT: return(DoRemove(input)); case ACTION_ENUM.EQUIP_ITEM: return(DoEquip(input)); case ACTION_ENUM.DROP_ITEM: return(DoDrop(input)); case ACTION_ENUM.DRINK: return(DoDrink(input)); case ACTION_ENUM.EAT: return(DoEat(input)); case ACTION_ENUM.SHOW_INVENTORY: return(DoShowInventory(input)); case ACTION_ENUM.SHOW_HANDS: return(DoLookHands(input)); case ACTION_ENUM.SIT: return(DoSit(input)); case ACTION_ENUM.STAND: return(DoStand(input)); case ACTION_ENUM.KNEEL: return(DoKneel(input)); case ACTION_ENUM.ATTACK: return(DoAttack(input)); case ACTION_ENUM.SHOW_HEALTH: return(DoShowHealth(input)); case ACTION_ENUM.SEARCH: return(DoSearch(input)); default: return(Handler.UNHANDLED()); } }
public virtual Handler DoSearch(ParsedInput input) { return(Handler.UNHANDLED()); }
public virtual Handler DoShowHealth(ParsedInput input) { return(Handler.UNHANDLED()); }
public virtual Handler DoKneel(ParsedInput input) { return(Handler.UNHANDLED()); }
public virtual Handler DoGetExtended(ParsedInput input) { return(Handler.UNHANDLED()); }
public virtual Handler DoShowInventory(ParsedInput input) { return(Handler.UNHANDLED()); }
public virtual Handler DoRemove(ParsedInput input) { return(Handler.UNHANDLED()); }
public virtual Handler DoMoveConnection(ParsedInput input) { return(Handler.UNHANDLED()); }
public virtual Handler DoLookInContainer(string strKeyword, int ordinal = 0) { return(Handler.UNHANDLED()); }
public virtual Handler DoLookHands(ParsedInput input) { return(Handler.UNHANDLED()); }
protected virtual Handler DoLook(string strWord1, string strWord2, string strWord3) { return(Handler.UNHANDLED()); }
public virtual Handler DoMoveBasic(ParsedInput input) { return(Handler.UNHANDLED()); }