QTfrontend/hwform.h
changeset 306 7b61834edcf6
parent 289 604c4a779c20
child 307 96b428ac11f2
equal deleted inserted replaced
305:1c1cd66ffcdc 306:7b61834edcf6
    22 #include <QLabel>
    22 #include <QLabel>
    23 #include <QLineEdit>
    23 #include <QLineEdit>
    24 #include <QDir>
    24 #include <QDir>
    25 #include <QStack>
    25 #include <QStack>
    26 
    26 
       
    27 #include "game.h"
    27 #include "ui_hwform.h"
    28 #include "ui_hwform.h"
    28 
    29 
    29 class HWGame;
    30 class HWGame;
    30 class HWTeam;
    31 class HWTeam;
    31 class HWNet;
    32 class HWNet;
    64 	void NetAddTeam();
    65 	void NetAddTeam();
    65 	void NetGameEnter();
    66 	void NetGameEnter();
    66 	void NetStartGame();
    67 	void NetStartGame();
    67 	void ChangeInNetTeams(const QStringList & teams);
    68 	void ChangeInNetTeams(const QStringList & teams);
    68 	void StartMPGame();
    69 	void StartMPGame();
       
    70 	void GameStateChanged(GameState gameState);
       
    71 	void GameStats(char type, const QString & info);
    69 
    72 
    70 private:
    73 private:
    71 	void UpdateTeamsLists();
    74 	void UpdateTeamsLists();
    72 	enum PageIDs {
    75 	enum PageIDs {
    73 		ID_PAGE_SINGLEPLAYER	= 0,
    76 		ID_PAGE_SINGLEPLAYER	= 0,
    77 		ID_PAGE_DEMOS	= 4,
    80 		ID_PAGE_DEMOS	= 4,
    78 		ID_PAGE_NET	= 5,
    81 		ID_PAGE_NET	= 5,
    79 		ID_PAGE_NETCHAT	= 6,
    82 		ID_PAGE_NETCHAT	= 6,
    80 		ID_PAGE_NETCFG	= 7,
    83 		ID_PAGE_NETCFG	= 7,
    81 		ID_PAGE_INFO	= 8,
    84 		ID_PAGE_INFO	= 8,
    82 		ID_PAGE_MAIN	= 9
    85 		ID_PAGE_MAIN	= 9,
       
    86 		ID_PAGE_GAMESTATS = 10
    83 		};
    87 		};
    84 	HWGame * game;
    88 	HWGame * game;
    85 	HWTeam * editedTeam;
    89 	HWTeam * editedTeam;
    86 	HWNet * hwnet;
    90 	HWNet * hwnet;
    87 	GameUIConfig * config;
    91 	GameUIConfig * config;
    88 	QStack<quint8> PagesStack;
    92 	QStack<quint8> PagesStack;
       
    93 
       
    94 	void CreateGame(GameCFGWidget * gamecfg);
    89 };
    95 };
    90 
    96 
    91 #endif
    97 #endif