private static boolean containsCollisionFormula ( TileCollision tile , CollisionCategory category ) { final Collection < CollisionFormula > formulas = tile . getCollisionFormulas ( ) ; for ( final CollisionFormula formula : category . getFormulas ( ) ) { if ( formulas . contains ( formula ) ) { return true ; } } return false ; }
Check if tile contains at least one collision from the category .