QTfrontend/game.h
changeset 85 44d9045b26ff
parent 84 0f6669da2fcb
child 86 664b536a1c27
equal deleted inserted replaced
84:0f6669da2fcb 85:44d9045b26ff
    45 
    45 
    46 #define IPC_PORT 46631
    46 #define IPC_PORT 46631
    47 #define MAXMSGCHARS 255
    47 #define MAXMSGCHARS 255
    48 #define SENDIPC(a) SendIPC(a, sizeof(a) - 1)
    48 #define SENDIPC(a) SendIPC(a, sizeof(a) - 1)
    49 
    49 
    50 class GameConfig;
    50 class GameUIConfig;
       
    51 class GameCFGWidget;
    51 
    52 
    52 class HWGame : public QObject
    53 class HWGame : public QObject
    53 {
    54 {
    54 	Q_OBJECT
    55 	Q_OBJECT
    55 public:
    56 public:
    56 	HWGame(GameConfig * config);
    57 	HWGame(GameUIConfig * config, GameCFGWidget * gamecfg);
    57 	void AddTeam(const QString & team);
    58 	void AddTeam(const QString & team);
    58 	void PlayDemo(const QString & demofilename);
    59 	void PlayDemo(const QString & demofilename);
    59 	void StartLocal();
    60 	void StartLocal();
    60 	void StartNet(const QString & netseed);
    61 	void StartNet(const QString & netseed);
    61 
    62 
    80 	QString seed;
    81 	QString seed;
    81 	int TeamCount;
    82 	int TeamCount;
    82 	RNDStr seedgen;
    83 	RNDStr seedgen;
    83 	QByteArray * demo;
    84 	QByteArray * demo;
    84 	QByteArray toSendBuf;
    85 	QByteArray toSendBuf;
    85 	GameConfig * config;
    86 	GameUIConfig * config;
       
    87 	GameCFGWidget * gamecfg;
    86 	GameType gameType;
    88 	GameType gameType;
    87 
    89 
    88 	void Start();
    90 	void Start();
    89 	void SendConfig();
    91 	void SendConfig();
    90 	void SendTeamConfig(int index);
    92 	void SendTeamConfig(int index);