ClientCommandManager.h 861 B

123456789101112131415161718192021222324252627282930
  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. class PlayerColor;
  12. class CIntObject;
  13. class ClientCommandManager
  14. {
  15. static bool currentCallFromIngameConsole;
  16. static void giveTurn(const PlayerColor &color);
  17. static void removeGUI();
  18. static void printInfoAboutInterfaceObject(const CIntObject *obj, int level);
  19. static void printCommandMessage(const std::string &commandMessage, ELogLevel::ELogLevel messageType = ELogLevel::NOT_SET);
  20. static void handleGoSolo();
  21. static void handleControlAi(const std::string &colorName);
  22. public:
  23. ClientCommandManager() = delete;
  24. static void processCommand(const std::string &message, bool calledFromIngameConsole);
  25. };