11 lines
296 B
C++
11 lines
296 B
C++
|
#include "State_OverworldMap.h"
|
||
|
|
||
|
bool ConnectionPoint::IsNeighbor(ConnectionPoint&testPoint){
|
||
|
for(int neighbor:neighbors){
|
||
|
if(neighbor!=-1){
|
||
|
ConnectionPoint&neighborCp=State_OverworldMap::ConnectionPointFromIndex(neighbor);
|
||
|
if(&neighborCp==&testPoint)return true;
|
||
|
}
|
||
|
}
|
||
|
return false;
|
||
|
}
|