--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/proto2/Engine.hh Sat Nov 08 18:02:58 2008 +0000
@@ -0,0 +1,27 @@
+
+#include "NetworkServer.hh"
+#include "NetworkClient.hh"
+
+class Engine {
+ private:
+ // game state
+ GameState game_state;
+
+ // network server/client
+ NetworkServer *net_server;
+ NetworkClient *net_client;
+
+ // to exit the mainloop
+ bool is_running;
+
+ // default constructor
+ Engine (void);
+
+ public:
+ static void runNetworkServer (const std::string &listen_port);
+ static void runNetworkClient (const std::string &connect_host, const std::string &connect_port);
+
+ private:
+ void main_loop (void);
+
+};