Prettied it up, comments, refactors

This commit is contained in:
2015-08-22 17:43:38 -07:00
parent 8fc8db2d78
commit ee6ea3442d
12 changed files with 258 additions and 237 deletions

View File

@@ -5,18 +5,33 @@
class Explorer {
public:
// Constructors
Explorer(Map* map_);
~Explorer();
// Getters
sf::Vector2i getPosition();
sf::Color getColor();
// Move to the specified destination
void setDestination(sf::Vector2i destination_);
// Follow the pathlist for one move
bool move();
private:
// Color that will be drawn
sf::Color color;
sf::Vector2i position;
// Reference to the map data
Map* map;
// Moves list that will be filled with plan(), and executed by move()
std::deque<int> movement_stack;
// Fills the movement stack with moves
bool plan(sf::Vector2i destination_);
};