@@ -1,16 +1,7 @@
#include "Cell.h"
+#include "unit.h"
#include <queue>
#include <vector>
-//***************
-//Äàéòå ìíå êëàññ Þíèò
-//Ìíå áëÿòü âñå ýòî ïðîâåðèòü íàäî
-//Ñëàâà Ñèøàðï
-struct Unit {
- bool canAttack(int distance) {
- return true;
- }
-};
Cell::Cell(Unit & character) {
upLeft_ = up_ = upRight_ = nullptr;
@@ -10,6 +10,7 @@ private:
Cell *upLeft_;
Cell *up_;
Cell *upRight_;
+
Cell * downLeft_;
Cell *down_;
Cell *downRight_;
@@ -56,4 +57,4 @@ public:
void RecalculateTableWithCenterThisPoint();
std::vector <Cell*> actualPath(Cell*);
+};