chat code

This commit is contained in:
Max-Wilhelm Bruker 2009-08-23 16:25:10 +02:00
parent 8daa81e462
commit 5d32bb8bc4
14 changed files with 85 additions and 28 deletions

View file

@ -21,6 +21,7 @@
#define SERVER_H
#include <QTcpServer>
#include <QStringList>
class ServerGame;
class ServerSocket;
@ -52,12 +53,14 @@ public:
AbstractRNG *getRNG() const { return rng; }
void broadcastGameListUpdate(ServerGame *game);
void removePlayer(ServerSocket *player);
const QStringList &getLoginMessage() const { return loginMessage; }
private:
void incomingConnection(int SocketId);
QList<ServerGame *> games;
QList<ServerSocket *> players;
QList<ChatChannel *> chatChannelList;
int nextGameId;
QStringList loginMessage;
AbstractRNG *rng;
};