Fixed relationship of network session and player data to be consistent with the game engine. Now sending card's values via network. Fixed net packet checks.

This commit is contained in:
lotodore
2007-05-13 22:25:59 +00:00
parent e2d394f576
commit 7540ea17bd
21 changed files with 282 additions and 72 deletions
+3 -1
View File
@@ -18,7 +18,7 @@
***************************************************************************/
#include "genericservergui.h"
#include <session.h>
using namespace std;
@@ -39,6 +39,7 @@ void GenericServerGui::initGui(int speed)
Session &GenericServerGui::getSession()
{
assert(mySession.get());
return *mySession;
}
@@ -49,5 +50,6 @@ void GenericServerGui::setSession(boost::shared_ptr<Session> session)
void GenericServerGui::waitForNetworkAction(GameState state, unsigned uniquePlayerId)
{
getSession().waitForNetworkServerAction(state, uniquePlayerId);
}
+1
View File
@@ -57,6 +57,7 @@ void
ServerGuiWrapper::waitForNetworkAction(GameState state, unsigned uniquePlayerId)
{
/* TODO hack */
myGui->waitForNetworkAction(state, uniquePlayerId);
}
void ServerGuiWrapper::refreshSet() const {}