ClientCommandManager.h 935 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * ClientCommandManager.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. VCMI_LIB_NAMESPACE_BEGIN
  12. class PlayerColor;
  13. VCMI_LIB_NAMESPACE_END
  14. class CIntObject;
  15. class ClientCommandManager //take mantis #2292 issue about account if thinking about handling cheats from command-line
  16. {
  17. bool currentCallFromIngameConsole = false;
  18. void giveTurn(const PlayerColor &color);
  19. void printInfoAboutInterfaceObject(const CIntObject *obj, int level);
  20. void printCommandMessage(const std::string &commandMessage, ELogLevel::ELogLevel messageType = ELogLevel::NOT_SET);
  21. void handleGoSolo();
  22. void handleControlAi(const std::string &colorName);
  23. public:
  24. ClientCommandManager() = default;
  25. void processCommand(const std::string &message, bool calledFromIngameConsole);
  26. };