Added irc support for lobby dialog. Takes some time to connect before messages can be sent/received. No special stuff yet, no user list, no connection notifications. Still work in progress.

This commit is contained in:
lotodore
2007-09-26 11:48:33 +00:00
parent 6c19233c18
commit 7bbf76fe5d
17 changed files with 117 additions and 19 deletions
+6
View File
@@ -30,6 +30,7 @@ class Game;
class ConfigFile;
class ClientThread;
class ServerAcceptThread;
class IrcThread;
class AvatarManager;
class Session{
@@ -61,6 +62,10 @@ public:
void terminateNetworkServer();
void waitForNetworkServer(unsigned timeoutMsec);
void startIrcClient();
void sendIrcChatMessage(const std::string &message);
void terminateIrcClient();
void sendClientPlayerAction();
void setCurrentGameID(int theValue) { currentGameID = theValue; }
@@ -81,6 +86,7 @@ private:
ClientThread *myNetClient;
ServerAcceptThread *myNetServer;
IrcThread *myIrcThread;
boost::shared_ptr<AvatarManager> myAvatarManager;
boost::shared_ptr<Game> currentGame;