This commit is contained in:
2015-08-22 06:25:01 -07:00
parent 6f25b81081
commit 56c4f158fc
16 changed files with 1166 additions and 0 deletions

21
aStar/Explorer.h Normal file
View File

@@ -0,0 +1,21 @@
#pragma once
#include <SFML/Graphics.hpp>
#include <stack>
#include "Map.h"
class Explorer {
public:
Explorer(Map* map_);
~Explorer();
sf::Vector2i getPosition();
sf::Color getColor();
private:
sf::Color color;
sf::Vector2i position;
Map* map;
std::stack<int> movement_stack;
bool move();
bool plan(sf::Vector2i destination_);
};