add a basic Player class

This commit is contained in:
Josh Holtrop 2012-08-22 21:20:01 -04:00
parent 2c7e454ca8
commit a568ab8fa8
2 changed files with 27 additions and 0 deletions

9
src/common/Player.cc Normal file
View File

@ -0,0 +1,9 @@
#include "Player.h"
Player::Player()
{
x = 0.0;
y = 0.0;
direction = 0.0;
}

18
src/common/Player.h Normal file
View File

@ -0,0 +1,18 @@
#ifndef PLAYER_H
#define PLAYER_H
#include <string>
class Player
{
public:
std::string name;
double x;
double y;
double direction; /* 0 = East, M_PI_2 = North, M_PI = West, ... */
Player();
};
#endif