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:
27
client/ClientCommandManager.h
Normal file
27
client/ClientCommandManager.h
Normal 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);
|
||||
};
|
||||
Reference in New Issue
Block a user