QTfrontend/game.h
changeset 84 0f6669da2fcb
parent 55 e09f7c952a40
child 85 44d9045b26ff
equal deleted inserted replaced
83:207c85fbef51 84:0f6669da2fcb
    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;
       
    51 
    50 class HWGame : public QObject
    52 class HWGame : public QObject
    51 {
    53 {
    52 	Q_OBJECT
    54 	Q_OBJECT
    53 public:
    55 public:
    54 	HWGame(int Resolution, bool Fullscreen);
    56 	HWGame(GameConfig * config);
    55 	void AddTeam(const QString & team);
    57 	void AddTeam(const QString & team);
    56 	void PlayDemo(const QString & demofilename);
    58 	void PlayDemo(const QString & demofilename);
    57 	void StartLocal();
    59 	void StartLocal();
    58 	void StartNet(const QString & netseed);
    60 	void StartNet(const QString & netseed);
    59 
    61 
    78 	QString seed;
    80 	QString seed;
    79 	int TeamCount;
    81 	int TeamCount;
    80 	RNDStr seedgen;
    82 	RNDStr seedgen;
    81 	QByteArray * demo;
    83 	QByteArray * demo;
    82 	QByteArray toSendBuf;
    84 	QByteArray toSendBuf;
    83 	int vid_Resolution;
    85 	GameConfig * config;
    84 	bool vid_Fullscreen;
       
    85 	GameType gameType;
    86 	GameType gameType;
    86 	QDir cfgdir;
       
    87 
    87 
    88 	void Start();
    88 	void Start();
    89 	void SendConfig();
    89 	void SendConfig();
    90 	void SendTeamConfig(int index);
    90 	void SendTeamConfig(int index);
    91 	void ParseMessage(const QByteArray & msg);
    91 	void ParseMessage(const QByteArray & msg);