summaryrefslogtreecommitdiff
path: root/src/net/nethandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/nethandler.h')
-rw-r--r--src/net/nethandler.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/net/nethandler.h b/src/net/nethandler.h
new file mode 100644
index 0000000..41f523c
--- /dev/null
+++ b/src/net/nethandler.h
@@ -0,0 +1,33 @@
+#include "network.h"
+
+#include "loginhandler.h"
+#include "../logindata.h"
+
+class NetHandler
+{
+
+
+public:
+
+ NetHandler();
+ ~NetHandler();
+
+ static NetHandler *getNetInstance();
+
+ void loadHandlers();
+ Network *getNetwork();
+ void clean_up(); // for restart
+
+ void accountLogin(LoginData *loginData);
+ void charLogin(LoginData *loginData);
+ void mapLogin(LoginData *loginData);
+ void attemptCharSelect();
+
+ void mapLoaded();
+ void privateMessage(std::string name, std::string msg);
+ void publicMessage(std::string msg);
+ void ping(int tick);
+ void sit();
+private:
+
+};