mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Simplify code
This commit is contained in:
@@ -21,6 +21,8 @@ class CGameHandler;
|
||||
|
||||
class PlayerMessageProcessor
|
||||
{
|
||||
CGameHandler * gameHandler;
|
||||
|
||||
void executeCheatCode(const std::string & cheatName, PlayerColor player, ObjectInstanceID currObj, const std::vector<std::string> & arguments );
|
||||
bool handleCheatCode(const std::string & cheatFullCommand, PlayerColor player, ObjectInstanceID currObj);
|
||||
bool handleHostCommand(PlayerColor player, const std::string & message);
|
||||
@@ -43,9 +45,6 @@ class PlayerMessageProcessor
|
||||
void cheatFly(PlayerColor player, const CGHeroInstance * hero);
|
||||
|
||||
public:
|
||||
CGameHandler * gameHandler;
|
||||
|
||||
PlayerMessageProcessor();
|
||||
PlayerMessageProcessor(CGameHandler * gameHandler);
|
||||
|
||||
/// incoming NetPack handling
|
||||
|
||||
Reference in New Issue
Block a user