original_docstring: 
      Function that resolves the collisions between the discs and the other objects
      
docstring: Function that resolves the collisions between the discs and the other objects
docstring_tokens: Function that resolves the collisions between the discs and the other objects
code: def resolve_collisions(stadium_game: Stadium) -> None:
      """
      Function that resolves the collisions between the discs and the other objects
      """
      for i in range(len(stadium_game.discs)):
          d_a = stadium_game.discs[i]
          for j in range(i + 1, len(stadium_game.discs)):
              d_b = stadium_game.discs[j]
              if ((d_a.collision_group & d_b.collision_mask) != 0) and (
                  (d_a.collision_mask & d_b.collision_group) != 0
              ):
                  resolve_disc_disc_collision(d_a, d_b)
          if d_a.inverse_mass != 0:
              for p in stadium_game.planes:
                  if ((d_a.collision_group & p.collision_mask) != 0) and (
                      (d_a.collision_mask & p.collision_group) != 0
                  ):
                      resolve_disc_plane_collision(d_a, p)
              for s in stadium_game.segments:
                  if ((d_a.collision_group & s.collision_mask) != 0) and (
                      (d_a.collision_mask & s.collision_group) != 0
                  ):
                      resolve_disc_segment_collision(d_a, s)
              for v in stadium_game.vertices:
                  if ((d_a.collision_group & v.collision_mask) != 0) and (
                      (d_a.collision_mask & v.collision_group) != 0
                  ):
                      resolve_disc_vertex_collision(d_a, v)
code_tokens: def resolve_collisions ( stadium_game : Stadium ) -> None : for i in range ( len ( stadium_game . discs ) ) : d_a = stadium_game . discs [ i ] for j in range ( i + 1 , len ( stadium_game . discs ) ) : d_b = stadium_game . discs [ j ] if ( ( d_a . collision_group & d_b . collision_mask ) != 0 ) and ( ( d_a . collision_mask & d_b . collision_group ) != 0 ) : resolve_disc_disc_collision ( d_a , d_b ) if d_a . inverse_mass != 0 : for p in stadium_game . planes : if ( ( d_a . collision_group & p . collision_mask ) != 0 ) and ( ( d_a . collision_mask & p . collision_group ) != 0 ) : resolve_disc_plane_collision ( d_a , p ) for s in stadium_game . segments : if ( ( d_a . collision_group & s . collision_mask ) != 0 ) and ( ( d_a . collision_mask & s . collision_group ) != 0 ) : resolve_disc_segment_collision ( d_a , s ) for v in stadium_game . vertices : if ( ( d_a . collision_group & v . collision_mask ) != 0 ) and ( ( d_a . collision_mask & v . collision_group ) != 0 ) : resolve_disc_vertex_collision ( d_a , v )
short_docstring: Function that resolves the collisions between the discs and the other objects
short_docstring_tokens: Function that resolves the collisions between the discs and the other objects
comment: """
      Function that resolves the collisions between the discs and the other objects
      """