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