Browse Source

Fixed unit.h. Don't tested

GeorgeKolog 6 years ago
parent
commit
f984ef1198
2 changed files with 3 additions and 11 deletions
  1. 1 10
      Cell.cpp
  2. 2 1
      Cell.h

+ 1 - 10
Cell.cpp

@@ -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;

+ 2 - 1
Cell.h

@@ -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*);
-};
+};