#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; }