about summary refs log tree commit diff
path: root/src/engine/client/client.h
diff options
context:
space:
mode:
authorOlle Rosenquist <phobos99@gmail.com>2007-07-22 11:53:15 +0000
committerOlle Rosenquist <phobos99@gmail.com>2007-07-22 11:53:15 +0000
commit26dd1c20cee2bf814396cb941c6aea68e63d664f (patch)
tree96b2ab24e5d5e59ba5b1108b6db090aa93e5c801 /src/engine/client/client.h
parent2165a728c25d804128933408cd8753c333be9ed3 (diff)
downloadzcatch-26dd1c20cee2bf814396cb941c6aea68e63d664f.tar.gz
zcatch-26dd1c20cee2bf814396cb941c6aea68e63d664f.zip
Updated stuff
Diffstat (limited to 'src/engine/client/client.h')
-rw-r--r--src/engine/client/client.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/engine/client/client.h b/src/engine/client/client.h
new file mode 100644
index 00000000..db9d142d
--- /dev/null
+++ b/src/engine/client/client.h
@@ -0,0 +1,48 @@
+#ifndef __CLIENT_H
+#define __CLIENT_H
+
+#include <engine/network.h>
+// --- client ---
+// TODO: remove this class
+class client
+{
+public:
+	int info_request_begin;
+	int info_request_end;
+	
+	int snapshot_part;
+
+	int debug_font; // TODO: rfemove this line
+
+	// data to hold three snapshots
+	// previous, 
+
+	void send_info();
+
+	void send_entergame();
+
+	void send_error(const char *error);
+
+	void send_input();
+	
+	void disconnect();
+	
+	bool load_data();
+	
+	void debug_render();
+	
+	void render();
+	
+	void run(const char *direct_connect_server);
+	
+	void error(const char *msg);
+	
+	void serverbrowse_request(int id);
+	
+	void serverbrowse_update();
+	void process_packet(NETPACKET *packet);
+	
+	void pump_network();	
+};
+
+#endif
\ No newline at end of file