QTfrontend/game.h
changeset 339 7535ab6c3820
parent 324 f4c109c82a0c
child 341 184230eb4151
equal deleted inserted replaced
338:d1e75dcd285f 339:7535ab6c3820
    28 
    28 
    29 #include "tcpBase.h"
    29 #include "tcpBase.h"
    30 
    30 
    31 class GameUIConfig;
    31 class GameUIConfig;
    32 class GameCFGWidget;
    32 class GameCFGWidget;
       
    33 class TeamSelWidget;
    33 
    34 
    34 enum GameState {
    35 enum GameState {
    35 	gsNotStarted = 0,
    36 	gsNotStarted = 0,
    36 	gsStarted  = 1,
    37 	gsStarted  = 1,
    37 	gsInterrupted = 2,
    38 	gsInterrupted = 2,
    42 
    43 
    43 class HWGame : public TCPBase
    44 class HWGame : public TCPBase
    44 {
    45 {
    45 	Q_OBJECT
    46 	Q_OBJECT
    46 public:
    47 public:
    47 	HWGame(GameUIConfig * config, GameCFGWidget * gamecfg);
    48 	HWGame(GameUIConfig * config, GameCFGWidget * gamecfg, TeamSelWidget* pTeamSelWidget=0);
    48 	void AddTeam(const QString & team, HWTeamTempParams teamParams);
    49 	void AddTeam(const QString & team, HWTeamTempParams teamParams);
    49 	void PlayDemo(const QString & demofilename);
    50 	void PlayDemo(const QString & demofilename);
    50 	void StartLocal();
    51 	void StartLocal();
    51 	void StartQuick();
    52 	void StartQuick();
    52 	void StartNet();
    53 	void StartNet();
    77 	std::map<QString, HWTeamTempParams> m_teamsParams;
    78 	std::map<QString, HWTeamTempParams> m_teamsParams;
    78 	QString seed;
    79 	QString seed;
    79 	int TeamCount;
    80 	int TeamCount;
    80 	GameUIConfig * config;
    81 	GameUIConfig * config;
    81 	GameCFGWidget * gamecfg;
    82 	GameCFGWidget * gamecfg;
       
    83 	TeamSelWidget* m_pTeamSelWidget;
    82 	GameType gameType;
    84 	GameType gameType;
    83 
    85 
    84 	void commonConfig();
    86 	void commonConfig();
    85 	void SendConfig();
    87 	void SendConfig();
    86 	void SendQuickConfig();
    88 	void SendQuickConfig();