QTfrontend/game.h
changeset 26 e32fa14529f8
parent 25 27aa8030322b
child 28 59f7db859b8a
--- a/QTfrontend/game.h	Tue Dec 06 19:46:40 2005 +0000
+++ b/QTfrontend/game.h	Wed Dec 07 20:36:55 2005 +0000
@@ -51,12 +51,18 @@
 {
 	Q_OBJECT
 public:
-	HWGame();
-	void Start(int Resolution, bool Fullscreen);
+	HWGame(int Resolution, bool Fullscreen);
+	void Start();
 	void AddTeam(const QString & team);
+	void PlayDemo(const QString & demofilename);
 
 private:
-	QTcpServer * IPCServer;
+    enum GameType {
+        gtLocal = 1,
+        gtDemo  = 2,
+        gtNet   = 3
+    };
+    QTcpServer * IPCServer;
 	QTcpSocket * IPCSocket;
 	char msgbuf[MAXMSGCHARS];
 	quint8 msgbufsize;
@@ -66,12 +72,17 @@
 	int TeamCount;
 	RNDStr seedgen;
 	QByteArray * demo;
+	QByteArray * toSendBuf;
+	int vid_Resolution;
+	bool vid_Fullscreen;
+	GameType gameType;
 
 	void SendConfig();
 	void SendTeamConfig(int index);
 	void ParseMessage();
 	void SendIPC(const char * msg, quint8 len);
 	void SendIPC(const QByteArray & buf);
+	void SendIPCRaw(const char * msg, quint32 len);
 	void SaveDemo(const QString & filename);
 	QString GetThemeBySeed();