summaryrefslogtreecommitdiff
path: root/net/nethandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/nethandler.h')
-rw-r--r--net/nethandler.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/net/nethandler.h b/net/nethandler.h
new file mode 100644
index 0000000..41f523c
--- /dev/null
+++ b/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:
+
+};