about summary refs log tree commit diff
path: root/src/engine/client/client.h
diff options
context:
space:
mode:
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