|
@@ -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*> âêëþ÷àåòñÿ â ñåáÿ è this, è end
|
|
|
+std::vector <Cell*> Cell::actualPath(Cell* to) {//std::vector<Cell*> âêëþ÷à åòñÿ â ñåáÿ è this, è end
|
|
|
if (!to || !to->getisMoveable())return std::vector<Cell*>();
|
|
|
auto ret = std::vector<Cell*>(1, to);
|
|
|
while (to != this) {
|