Open Source Tomb Raider Engine
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

CommandBind.h 516B

1234567891011121314151617181920212223242526
  1. /*!
  2. * \file include/commands/CommandBind.h
  3. * \brief Bind Command interface
  4. *
  5. * \author xythobuz
  6. */
  7. #ifndef _COMMAND_BIND_H_
  8. #define _COMMAND_BIND_H_
  9. #include "commands/Command.h"
  10. class CommandBind : public Command {
  11. public:
  12. virtual std::string name();
  13. virtual std::string brief();
  14. virtual void printHelp();
  15. virtual int execute(std::istream& args);
  16. private:
  17. ActionEvents stringToActionEvent(std::string action);
  18. KeyboardButton stringToKeyboardButton(std::string key);
  19. };
  20. #endif