set session for chat
This commit is contained in:
@@ -124,6 +124,11 @@ gameLobbyDialogImpl::~gameLobbyDialogImpl()
|
||||
|
||||
}
|
||||
|
||||
void gameLobbyDialogImpl::setSession(boost::shared_ptr<Session> session) {
|
||||
mySession = session;
|
||||
myChat->setSession(mySession);
|
||||
}
|
||||
|
||||
void gameLobbyDialogImpl::createGame()
|
||||
{
|
||||
assert(mySession);
|
||||
|
||||
@@ -45,7 +45,7 @@ public:
|
||||
|
||||
ChatTools *getMyChat() { return myChat; }
|
||||
|
||||
void setSession(boost::shared_ptr<Session> session) { mySession = session; }
|
||||
void setSession(boost::shared_ptr<Session> session);
|
||||
boost::shared_ptr<Session> getSession() { assert(mySession.get()); return mySession; }
|
||||
|
||||
void setMyW ( gameTableImpl* theValue ) { myW = theValue; }
|
||||
|
||||
@@ -695,11 +695,12 @@ void gameTableImpl::initGui(int speed)
|
||||
horizontalSlider_speed->setValue(guiGameSpeed);
|
||||
setSpeeds();
|
||||
}
|
||||
|
||||
//set session for chat
|
||||
myChat->setSession(this->getSession());
|
||||
}
|
||||
|
||||
boost::shared_ptr<Session> gameTableImpl::getSession() { assert(myStartWindow->getSession().get()); return myStartWindow->getSession(); }
|
||||
// void gameTableImpl::setSession(boost::shared_ptr<Session> session) { mySession = session; }
|
||||
|
||||
|
||||
//refresh-Funktionen
|
||||
void gameTableImpl::refreshSet() {
|
||||
|
||||
@@ -28,7 +28,6 @@ class Session;
|
||||
class gameTableImpl;
|
||||
class startWindowImpl;
|
||||
class Log;
|
||||
class Chat;
|
||||
class ConfigFile;
|
||||
|
||||
|
||||
@@ -161,7 +160,6 @@ public:
|
||||
private:
|
||||
|
||||
Log *myLog;
|
||||
Chat *myChat;
|
||||
gameTableImpl *myW;
|
||||
ConfigFile *myConfig;
|
||||
startWindowImpl *myStartWindow;
|
||||
|
||||
Reference in New Issue
Block a user