very buggy system working, but only works properly with one client at a time due to recv blocking
This commit is contained in:
@@ -1,4 +1,23 @@
|
||||
#ifndef PLAYERMANAGER_H_
|
||||
#define PLAYERMANAGER_H_
|
||||
|
||||
#include "player.hpp"
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
class PlayerManager {
|
||||
public:
|
||||
PlayerManager() = default;
|
||||
~PlayerManager() = default;
|
||||
private:
|
||||
//utilities
|
||||
typedef std::map<std::string, Player*> PlayerMap;
|
||||
|
||||
//members
|
||||
PlayerMap playerMap;
|
||||
int maxPlayers;
|
||||
int ticker;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user