2024-01-13 09:40:56 +00:00
|
|
|
#ifndef __PLAYERMANAGER__H__
|
|
|
|
#define __PLAYERMANAGER__H__
|
|
|
|
|
|
|
|
#include "dCommonVars.h"
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
2024-02-04 14:29:05 +00:00
|
|
|
class Entity;
|
2024-01-13 09:40:56 +00:00
|
|
|
struct SystemAddress;
|
|
|
|
|
|
|
|
namespace PlayerManager {
|
2024-02-04 14:29:05 +00:00
|
|
|
void AddPlayer(Entity* player);
|
2024-01-13 09:40:56 +00:00
|
|
|
|
2024-02-04 14:29:05 +00:00
|
|
|
bool RemovePlayer(Entity* player);
|
2024-01-13 09:40:56 +00:00
|
|
|
|
2024-02-04 14:29:05 +00:00
|
|
|
Entity* GetPlayer(const SystemAddress& sysAddr);
|
2024-01-13 09:40:56 +00:00
|
|
|
|
2024-02-04 14:29:05 +00:00
|
|
|
Entity* GetPlayer(const std::string& name);
|
2024-01-13 09:40:56 +00:00
|
|
|
|
2024-02-04 14:29:05 +00:00
|
|
|
Entity* GetPlayer(LWOOBJID playerID);
|
2024-01-13 09:40:56 +00:00
|
|
|
|
2024-02-04 14:29:05 +00:00
|
|
|
const std::vector<Entity*>& GetAllPlayers();
|
2024-01-13 09:40:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //!__PLAYERMANAGER__H__
|