summaryrefslogtreecommitdiff
path: root/src/net/nethandler.h
blob: 41f523c45d23d3b3116eb7df37f53b6b62d5ac38 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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:

};