#include "common.h" #include "Board.h" class Player { public: Player(int xstart, int ystart, DIR start_dir); bool Move(Board* B, char fill, char other); //Sets crashed var inline void Get_Pos(int&x, int&y) {x=current_x; y=current_y;}; inline bool Crashed() {return crashed;}; //Is this player dead? inline DIR Direction() {return current_dir;}; inline void Set_Dir(DIR d) {current_dir=d;}; private: bool crashed; DIR current_dir; int current_x; int current_y; };