#ifndef OPENMW_PLAYERLIST_HPP #define OPENMW_PLAYERLIST_HPP #include #include #include #include "../mwmechanics/aisequence.hpp" #include "../mwworld/manualref.hpp" #include #include namespace MWMechanics { class Actor; } namespace mwmp { class DedicatedPlayer; class PlayerList { public: static void update(float dt); static DedicatedPlayer *newPlayer(RakNet::RakNetGUID guid); static void deletePlayer(RakNet::RakNetGUID guid); static void cleanUp(); static DedicatedPlayer *getPlayer(RakNet::RakNetGUID guid); static DedicatedPlayer *getPlayer(const MWWorld::Ptr &ptr); static bool isDedicatedPlayer(const MWWorld::Ptr &ptr); static void clearHitAttemptActorId(int actorId); private: static std::map players; }; } #endif //OPENMW_PLAYERLIST_HPP