From 44ca00cd16daed74351910b57dee87ff5dc0d074 Mon Sep 17 00:00:00 2001 From: ArseniyShestakov Date: Sun, 25 Oct 2015 19:11:00 +0300 Subject: [PATCH] CPathfinder: rename functions --- lib/CGameState.cpp | 8 ++++---- lib/CGameState.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/CGameState.cpp b/lib/CGameState.cpp index f0c33d19f..ad310d28f 100644 --- a/lib/CGameState.cpp +++ b/lib/CGameState.cpp @@ -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); diff --git a/lib/CGameState.h b/lib/CGameState.h index 34593e397..9e0da72bd 100644 --- a/lib/CGameState.h +++ b/lib/CGameState.h @@ -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();