|
@@ -1,11 +1,7 @@
|
|
|
#include "Cell.h"
|
|
|
#include <queue>
|
|
|
#include <vector>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
struct Unit {
|
|
|
bool canAttack(int distance) {
|
|
|
return true;
|
|
@@ -172,7 +168,7 @@ void Cell::RecalculateTableWithCenterThisPoint() {
|
|
|
handleAllMoveableCellsAndUnmoveableCells_(qWithoutMoveable);
|
|
|
handleAllUnmoveableCells_(qWithoutMoveable);
|
|
|
}
|
|
|
-std::vector <Cell*> Cell::actualPath(Cell* to) {
|
|
|
+std::vector <Cell*> Cell::actualPath(Cell* to) {
|
|
|
if (!to || !to->getisMoveable())return std::vector<Cell*>();
|
|
|
auto ret = std::vector<Cell*>(1, to);
|
|
|
while (to != this) {
|