From 1a28393dabf4f4696bf433ddde52e7a25253c955 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Thu, 16 Oct 2008 16:34:15 +0000 Subject: various user interface related updates --- src/core/netconnection.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/core/netconnection.h') diff --git a/src/core/netconnection.h b/src/core/netconnection.h index cb04ce2..66f7369 100644 --- a/src/core/netconnection.h +++ b/src/core/netconnection.h @@ -48,7 +48,7 @@ public: virtual void disconnect(); /// process pending incoming messages - void frame(float seconds); + void frame(); /// send a connect message to the remote server void send_connect(); @@ -93,6 +93,9 @@ public: State connection_state; + /// return the current game time + inline unsigned long timestamp() const { return connection_timestamp; } + protected: /// add a raw network message to the send queue void send_raw(std::string const &msg); @@ -128,6 +131,8 @@ private: size_t received_compressed_size; size_t compressed_size; char zrecvbuf[BLOCKSIZE]; + + unsigned long connection_timestamp; }; } -- cgit v1.2.3