renamed servernetwork to ISL (inter-server link), join/leave is working

This commit is contained in:
Max-Wilhelm Bruker 2012-03-10 19:02:15 +01:00
parent dda78661ea
commit 5963c2239c
9 changed files with 155 additions and 78 deletions

View file

@ -11,6 +11,8 @@ class Server_Game;
class Server_Room;
class Server_ProtocolHandler;
class GameReplay;
class IslMessage;
class SessionEvent;
enum AuthenticationResult { NotLoggedIn = 0, PasswordRight = 1, UnknownUser = 2, WouldOverwriteOldSession = 3, UserIsBanned = 4 };
@ -50,6 +52,8 @@ public:
virtual bool isInIgnoreList(const QString &whoseList, const QString &who) { return false; }
virtual void storeGameInformation(int secondsElapsed, const QSet<QString> &allPlayersEver, const QSet<QString> &allSpectatorsEver, const QList<GameReplay *> &replays) { }
void sendIslMessage(const SessionEvent &item, int serverId = -1);
protected:
void prepareDestroy();
QList<Server_ProtocolHandler *> clients;
@ -70,6 +74,8 @@ protected:
virtual void lockSessionTables() { }
virtual void unlockSessionTables() { }
virtual bool userSessionExists(const QString &userName) { return false; }
virtual void doSendIslMessage(const IslMessage &msg, int serverId) { }
};
#endif