private static Map < Transition , Collection < TileRef > > getTransitions ( MapTile map ) { final Map < Transition , Collection < TileRef > > transitions = new HashMap <> ( ) ; final MapTransitionExtractor extractor = new MapTransitionExtractor ( map ) ; for ( int ty = 1 ; ty < map . getInTileHeight ( ) - 1 ; ty ++ ) { for ( int tx = 1 ; tx < map . getInTileWidth ( ) - 1 ; tx ++ ) { final Tile tile = map . getTile ( tx , ty ) ; if ( tile != null ) { checkTransition ( transitions , extractor , tile ) ; } } } return transitions ; }
Get map tile transitions .