src/proto2/Engine.hh
changeset 21 32c6cc55256a
child 22 b70d30e1b0fe
--- /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);
+
+};