1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Extract client commands handling to separate class + minor fixes

This commit is contained in:
Dydzio
2023-01-06 17:52:18 +01:00
parent a2ce9220ed
commit b1c008179d
5 changed files with 542 additions and 441 deletions

View File

@@ -0,0 +1,27 @@
/*
* 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
class PlayerColor;
class CIntObject;
class ClientCommandManager
{
static void giveTurn(const PlayerColor &color);
static void removeGUI();
static void printInfoAboutInterfaceObject(const CIntObject *obj, int level);
public:
#ifndef VCMI_IOS
static void processCommand(const std::string &message);
#endif
static void handleGoSolo();
static void handleControlAi(const std::string &colorName);
};