mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-17 01:32:21 +02:00
CPathfinder: rename functions
This commit is contained in:
@ -3300,7 +3300,7 @@ void CPathfinder::initializeGraph()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CPathfinder::getNeighbours(const int3 &coord)
|
void CPathfinder::addNeighbours(const int3 &coord)
|
||||||
{
|
{
|
||||||
neighbours.clear();
|
neighbours.clear();
|
||||||
ct = &gs->map->getTile(coord);
|
ct = &gs->map->getTile(coord);
|
||||||
@ -3320,7 +3320,7 @@ void CPathfinder::getNeighbours(const int3 &coord)
|
|||||||
vstd::concatenate(neighbours, tiles);
|
vstd::concatenate(neighbours, tiles);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CPathfinder::getTeleportExits(bool noTeleportExcludes)
|
void CPathfinder::addTeleportExits(bool noTeleportExcludes)
|
||||||
{
|
{
|
||||||
assert(sTileObj);
|
assert(sTileObj);
|
||||||
|
|
||||||
@ -3455,7 +3455,7 @@ void CPathfinder::calculatePaths()
|
|||||||
}
|
}
|
||||||
|
|
||||||
//add accessible neighbouring nodes to the queue
|
//add accessible neighbouring nodes to the queue
|
||||||
getNeighbours(cp->coord);
|
addNeighbours(cp->coord);
|
||||||
for(auto & neighbour : neighbours)
|
for(auto & neighbour : neighbours)
|
||||||
{
|
{
|
||||||
dp = getNode(neighbour);
|
dp = getNode(neighbour);
|
||||||
@ -3498,7 +3498,7 @@ void CPathfinder::calculatePaths()
|
|||||||
//just add all passable teleport exits
|
//just add all passable teleport exits
|
||||||
if(sTileObj)
|
if(sTileObj)
|
||||||
{
|
{
|
||||||
getTeleportExits();
|
addTeleportExits();
|
||||||
for(auto & neighbour : neighbours)
|
for(auto & neighbour : neighbours)
|
||||||
{
|
{
|
||||||
dp = getNode(neighbour);
|
dp = getNode(neighbour);
|
||||||
|
@ -317,8 +317,8 @@ private:
|
|||||||
bool isDestinationGuarded();
|
bool isDestinationGuarded();
|
||||||
bool isDestinationGuardian();
|
bool isDestinationGuardian();
|
||||||
|
|
||||||
void getNeighbours(const int3 &coord);
|
void addNeighbours(const int3 &coord);
|
||||||
void getTeleportExits(bool noTeleportExcludes = false);
|
void addTeleportExits(bool noTeleportExcludes = false);
|
||||||
|
|
||||||
bool checkDestinationTile();
|
bool checkDestinationTile();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user