From 26dd1c20cee2bf814396cb941c6aea68e63d664f Mon Sep 17 00:00:00 2001 From: Olle Rosenquist Date: Sun, 22 Jul 2007 11:53:15 +0000 Subject: Updated stuff --- src/engine/client/client.h | 48 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 src/engine/client/client.h (limited to 'src/engine/client/client.h') 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 +// --- 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 -- cgit 1.4.1