AdventuresInLestoria/Crawler/ConnectionPoint.cpp

11 lines
296 B
C++
Raw Normal View History

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