returns true if we can build this type of unit here . takes into account reserved tiles . concode_field_sep boolean[][] reserveMap concode_elem_sep JNIBWAPI bwapi concode_elem_sep int buildDistance concode_elem_sep int mapWidth concode_elem_sep int mapHeight concode_field_sep void freeTiles concode_elem_sep int getBuildDistance concode_elem_sep boolean canBuildHereWithSpace concode_elem_sep boolean canBuildHereWithSpace concode_elem_sep Position getBuildLocationNear concode_elem_sep Position getBuildLocationNear concode_elem_sep boolean isReserved concode_elem_sep Position getBuildLocation concode_elem_sep void reserveTiles concode_elem_sep boolean buildable concode_elem_sep void setBuildDistance
boolean function ( Position arg0 , UnitType arg1 ) { if ( ! bwapi . canBuildHere ( null , arg0 , arg1 , true ) ) return false ; for ( int loc0 = arg0 . getBX ( ) ; loc0 < arg0 . getBX ( ) + arg1 . getTileWidth ( ) ; loc0 ++ ) for ( int loc1 = arg0 . getBY ( ) ; loc1 < arg0 . getBY ( ) + arg1 . getTileHeight ( ) ; loc1 ++ ) if ( reserveMap [ loc0 ] [ loc1 ] ) return false ; return true ; }