1 #ifndef PLAYERATTRIBUTES_H_D7THWFVV
2 #define PLAYERATTRIBUTES_H_D7THWFVV
3 
4 #include <list>
5 #include <string>
6 
7 struct Player
8 {
9 	std::string name;
10 	double x, y, z;
11 };
12 
13 class PlayerAttributes
14 {
15 public:
16 	typedef std::list<Player> Players;
17 
18 	PlayerAttributes(const std::string &worldDir);
19 	Players::iterator begin();
20 	Players::iterator end();
21 
22 private:
23 	void readFiles(const std::string &playersPath);
24 	void readSqlite(const std::string &db_name);
25 
26 	Players m_players;
27 };
28 
29 #endif /* end of include guard: PLAYERATTRIBUTES_H_D7THWFVV */
30 
31