PathFinderCppTomC/level.cpp
bool cLevel::isValid(int x, int y) const
{ 
	if ((x < 0) || (x > 39)) return false; 
	if ((y < 0) || (y > 39)) return false;
	int m = map[x][y];
	if(m != 0) return false;
	return true;
}
//======================================================================================
//Valid if in range and position is traversable
//======================================================================================

Valid if in range and position is traversable
Valid if in range and position is traversable
bool cLevel::isValid(int x, int y) const
{ 
	if ((x < 0) || (x > 39)) return false; 
	if ((y < 0) || (y > 39)) return false;
	int m = map[x][y];
	if(m != 0) return false;
	return true;
}
bool cLevel :: isValid ( int x , int y ) const { if ( ( x < 0 ) || ( x > 39 ) ) return false ; if ( ( y < 0 ) || ( y > 39 ) ) return false ; int m = map [ x ] [ y ] ; if ( m != 0 ) return false ; return true ; }
Valid if in range and position is traversable
Valid if in range and position is traversable