Added position data to player objects

This commit is contained in:
Kayne Ruse
2013-12-31 02:25:16 +11:00
parent 071e0d9021
commit 31cca61d1c
3 changed files with 12 additions and 44 deletions
+4
View File
@@ -22,6 +22,8 @@
#ifndef PLAYER_HPP_
#define PLAYER_HPP_
#include "vector2.hpp"
#include <string>
#include <map>
@@ -32,6 +34,8 @@ struct Player {
int clientIndex;
std::string handle;
std::string avatar;
Vector2 position;
Vector2 motion;
};
typedef std::map<int, Player> PlayerMap;