diff options
Diffstat (limited to 'player.h')
-rw-r--r-- | player.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/player.h b/player.h new file mode 100644 index 0000000..c5f558d --- /dev/null +++ b/player.h @@ -0,0 +1,38 @@ +#ifndef PLAYER_H +#define PLAYER_H + +#include "gl.h" +#include "vector.h" + +#include <boost/shared_ptr.hpp> +#include <boost/cstdint.hpp> + +#include <FTGL/ftgl.h> + +#include <list> + +class Player { + private: + uint32_t id; + std::string name; + Vector3 pos; + + float t; + + public: + typedef boost::shared_ptr<Player> p; + + Player(uint32_t id, Vector3& pos, const std::string name); + + uint32_t get_id(); + std::string get_name(); + Vector3 get_pos(); + + void set_pos(Vector3& pos); + + void render(FTFont *font, unsigned int steps, GLuint texture); +}; + +typedef std::list<Player::p> PlayerList; + +#endif |