#ifndef ADMIN_MANAGER_H_INCLUDED #define ADMIN_MANAGER_H_INCLUDED #include "UWD.h" #include "RakNetTypes.h" //#include //#include namespace UWD { typedef std::map TAdminIDMap; /*! * \brief * Singleton AdminManager - manages administrator connections * */ class AdminManager: public InstanceManager, public PacketHandler { private: // Hide the Constructorz! /*! \brief AdminManager constructor.*/ AdminManager(); ~AdminManager(); AdminManager& operator=(AdminManager&); // Disallowed AdminManager(const AdminManager&); // Disallowed /*! \brief * Map where Key is the SystemAddress of a client, and value is the PlayerData struct for that client. * This is used as a quick lookup to find information on a certain client. */ TAdminIDMap adminMap; public: static AdminManager& getSingleton(); void handlePacket(Packet* packetToHandle); }; } #endif // ADMIN_MANAGER_H_INCLUDED