2023-01-06 17:52:18 +01:00
|
|
|
/*
|
|
|
|
* ClientCommandManager.h, part of VCMI engine
|
|
|
|
*
|
|
|
|
* Authors: listed in file AUTHORS in main folder
|
|
|
|
*
|
|
|
|
* License: GNU General Public License v2.0 or later
|
|
|
|
* Full text of license available in license.txt file, in main folder
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2023-01-07 12:47:00 +01:00
|
|
|
VCMI_LIB_NAMESPACE_BEGIN
|
2023-01-06 17:52:18 +01:00
|
|
|
class PlayerColor;
|
2023-01-07 12:47:00 +01:00
|
|
|
VCMI_LIB_NAMESPACE_END
|
2023-01-06 17:52:18 +01:00
|
|
|
class CIntObject;
|
|
|
|
|
2023-01-08 20:30:57 +01:00
|
|
|
class ClientCommandManager //take mantis #2292 issue about account if thinking about handling cheats from command-line
|
2023-01-06 17:52:18 +01:00
|
|
|
{
|
2023-03-22 23:09:43 +02:00
|
|
|
bool currentCallFromIngameConsole = false;
|
2023-01-06 21:01:00 +01:00
|
|
|
|
2023-01-15 01:09:58 +01:00
|
|
|
void giveTurn(const PlayerColor &color);
|
|
|
|
void printInfoAboutInterfaceObject(const CIntObject *obj, int level);
|
|
|
|
void printCommandMessage(const std::string &commandMessage, ELogLevel::ELogLevel messageType = ELogLevel::NOT_SET);
|
|
|
|
void handleGoSolo();
|
|
|
|
void handleControlAi(const std::string &colorName);
|
2023-01-06 21:01:00 +01:00
|
|
|
|
|
|
|
public:
|
2023-01-15 01:09:58 +01:00
|
|
|
ClientCommandManager() = default;
|
|
|
|
void processCommand(const std::string &message, bool calledFromIngameConsole);
|
2023-01-06 17:52:18 +01:00
|
|
|
};
|