int function ( ) { int loc0 = 0 ; int loc1 = 0 ; while ( loc0 < MAX_TRIES && loc1 <= rooms ) { if ( placeRoom ( ) ) loc1 ++ ; else loc0 ++ ; } return loc1 ; }
generate all rooms in a given maze where initially all walls are up . rooms are placed randomly and of random sizes such that the maze can turn out to be too small to accommodate the requested number of rooms class attribute rooms . in that case less rooms are produced . concode_field_sep int rooms concode_elem_sep int MAX_TRIES concode_elem_sep int MAX_ROOM_DIMENSION concode_elem_sep long SLEEP_INTERVAL concode_elem_sep SingleRandom random concode_elem_sep int expectedPartiters concode_elem_sep Cells cells concode_elem_sep int width concode_elem_sep int starty concode_elem_sep int startx concode_elem_sep int MIN_ROOM_DIMENSION concode_elem_sep int height concode_elem_sep Distance dists concode_elem_sep Order order concode_field_sep void buildOrder concode_elem_sep boolean placeRoom concode_elem_sep int getSign concode_elem_sep void dbg concode_elem_sep void reset concode_elem_sep void generatePathways concode_elem_sep void run concode_elem_sep void generate