summaryrefslogtreecommitdiff
path: root/player.h
blob: c5f558d3558f11fae44a962e22e770d5218f54da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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