summaryrefslogtreecommitdiffstats
path: root/src/crsm.hpp
diff options
context:
space:
mode:
authorMarkus Mittendrein <git@maxmitti.tk>2017-04-06 17:22:23 +0200
committerMarkus Mittendrein <git@maxmitti.tk>2017-04-06 17:22:52 +0200
commit21d4d5f0de6bd8ed1cdab4f7fe6b9596dd390252 (patch)
tree53af18c9eb2098721dca970f0316d832938b231e /src/crsm.hpp
parent3fe710cb029522b86ef27c322f0cb793b1368051 (diff)
downloadmanager-21d4d5f0de6bd8ed1cdab4f7fe6b9596dd390252.tar.gz
manager-21d4d5f0de6bd8ed1cdab4f7fe6b9596dd390252.zip
Move clonk control specific parts into ClonkControl
There are still many clonk commands hardcoded through the pass-CRSM-Commands
Diffstat (limited to 'src/crsm.hpp')
-rw-r--r--src/crsm.hpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/crsm.hpp b/src/crsm.hpp
index 87886c6..abae69a 100644
--- a/src/crsm.hpp
+++ b/src/crsm.hpp
@@ -29,6 +29,7 @@
#include "ClonkInterface.hpp"
#include "PatchedClonkParser.hpp"
+#include "PatchedClonkControl.hpp"
#define CONFIG_FILE_NAME "CrServerManager.conf"
#define SESSION_FILE_NAME "CrServerManager.session"
@@ -76,7 +77,7 @@ public:
QString value() { return Util::joinEscape({ConfigValueBase::getStringValue(config.name), ConfigValueBase::getStringValue(config.league), ConfigValueBase::getStringValue(config.wishClient)}, ':', '|'); }
};
-class CRSM : public QObject, public ClonkOutputInterface
+class CRSM : public QObject, public ClonkOutputInterface, public ClonkControllerInterface
{
friend CRSMSession::CRSMSession(CRSM *crsm);
private:
@@ -158,6 +159,7 @@ private:
CRSMLogging Log;
PatchedClonkParser parser;
+ PatchedClonkControl control;
QList<ScenarioSettings> userlist;
QList<ScenarioSettings> autolist;
@@ -246,11 +248,11 @@ private:
void out(const QString& text);
void replayOutputBuffer(QTcpSocket *socket, bool clear = true);
- void announceInfo(const QString& info);
+ void announceInfo(const QString& info, bool useOutgameChannel = true);
bool scenAllowed(const ScenarioSettings& scen, const ClientInfo& client, UserType userType);
- void kick(const QString& pcName, const QString& reason = "");
+ void kick(const ClientInfo& client, const QString& reason = "");
void prepareAndConnectIrc();