diff options
Diffstat (limited to 'server/player.h')
-rw-r--r-- | server/player.h | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/server/player.h b/server/player.h index c2cecdf..8e04ab5 100644 --- a/server/player.h +++ b/server/player.h @@ -1,21 +1,26 @@ #ifndef PLAYER_H
#define PLAYER_H -#include <string>
+#include <string> +#include <boost/shared_ptr.hpp> +#include "connection.h"
class Player{ private: - //What the server needs to get in contact with player. - std::string ip; - std::string port; - std::string nick;//The players nick - - unsigned int id;//Either generated or fetched from database + + //! A smart pointer to the players connection + Connection::p connection_pointer; + + //! The players nick + std::string nick; + + //! Either generated or fetched from database. Not used yet. + unsigned int id; public: Player(); ~Player(); - Player(std::string& ip, std::string& port, std::string& nick); + Player(const Connection::p& connection, const std::string& nick); };
#endif // PLAYER_H_INCLUDED
|