edu.eside.flingbox.physics.collisions
Class Arbiter

java.lang.Object
  extended by edu.eside.flingbox.physics.collisions.Arbiter

public class Arbiter
extends java.lang.Object

Arbiter manages the collisions between bodies


Constructor Summary
Arbiter()
           
 
Method Summary
 void add(Collider collider)
          Adds new collider to the arbiter
 void checkCollisions()
          Checks collision between bodies that are managed by the arbiter.
 boolean remove(Collider collider)
          Removes a collider from the arbiter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Arbiter

public Arbiter()
Method Detail

add

public void add(Collider collider)
Adds new collider to the arbiter


remove

public boolean remove(Collider collider)
Removes a collider from the arbiter


checkCollisions

public void checkCollisions()
Checks collision between bodies that are managed by the arbiter.