Game configuration now placed in a struct. Prepared to send/receive game configuration over tcp.

This commit is contained in:
lotodore
2007-04-26 23:07:08 +00:00
parent e202a83fbc
commit 29b6050ee1
16 changed files with 133 additions and 37 deletions
+5 -4
View File
@@ -19,6 +19,7 @@
***************************************************************************/
#ifndef STDSESSION_H
#define STDSESSION_H
#include "gamedata.h"
#include <string>
class GuiInterface;
@@ -30,18 +31,18 @@ class ServerThread;
class Session{
public:
Session(GuiInterface*);
Session(GuiInterface*);
~Session();
~Session();
void startGame(int qP, int sC, int sB, int hbrsB);
void startGame(const GameData &gameData);
void deleteGame();
void startNetworkClient(const std::string &serverAddress, unsigned serverPort, bool ipv6, const std::string &pwd);
void startNetworkClientForLocalServer();
void terminateNetworkClient();
void startNetworkServer();
void startNetworkServer(const GameData &gameData);
void initiateNetworkServerGame();
void terminateNetworkServer();