diff --git a/src/common/Player.cc b/src/common/Player.cc new file mode 100644 index 0000000..cd45548 --- /dev/null +++ b/src/common/Player.cc @@ -0,0 +1,9 @@ + +#include "Player.h" + +Player::Player() +{ + x = 0.0; + y = 0.0; + direction = 0.0; +} diff --git a/src/common/Player.h b/src/common/Player.h new file mode 100644 index 0000000..2fca3e3 --- /dev/null +++ b/src/common/Player.h @@ -0,0 +1,18 @@ + +#ifndef PLAYER_H +#define PLAYER_H + +#include + +class Player +{ + public: + std::string name; + double x; + double y; + double direction; /* 0 = East, M_PI_2 = North, M_PI = West, ... */ + + Player(); +}; + +#endif