summaryrefslogblamecommitdiff
path: root/src/net/nethandler.h
blob: 41f523c45d23d3b3116eb7df37f53b6b62d5ac38 (plain) (tree)
































                                                               
#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:

};