From 9fa6460f22be5482239d0b903af985a519f77166 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Wed, 1 Jun 2011 19:28:24 +0200 Subject: Initial commit. --- connection.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 connection.h (limited to 'connection.h') diff --git a/connection.h b/connection.h new file mode 100644 index 0000000..78603e4 --- /dev/null +++ b/connection.h @@ -0,0 +1,30 @@ +#ifndef CONNECTION_H +#define CONNECTION_H + +#include "vector.h" + +#include +#include + +#include + +class Connection { + private: + boost::asio::io_service& io_service; + + public: + typedef boost::shared_ptr p; + + boost::asio::ip::tcp::socket socket; + + Connection(boost::asio::io_service& io_service_); + + float distance(float px, float pz); + std::set > check_chunks(); + + /* data */ + Vector3 pos; + std::set > chunk_indices; +}; + +#endif -- cgit v1.2.3