Package net.javlov.world

Examples of net.javlov.world.CollisionEvent


       
    return true;
  }
 
  protected void queueCollisionEvent(Body b1, Body b2, Point2D.Double speed) {
    CollisionEvent e = new CollisionEvent(b1, b2, speed, (Point2D.Double)b2.getLocation());
    collisionList.add(e);
  }
View Full Code Here


    for ( GridCell c : getIntersectingCellsLarge(b.getFigure()) )
        c.removeBody(b);
    }
 
  protected void addCollisionEvent(Body b1, Body b2, Point2D.Double speed) {
    CollisionEvent event = new CollisionEvent(b1, b2, speed, (Point2D.Double)b2.getLocation());
    collisionEvents.add(event);
  }
View Full Code Here

    CollisionEvent event = new CollisionEvent(b1, b2, speed, (Point2D.Double)b2.getLocation());
    collisionEvents.add(event);
  }
 
  protected void processCollisionEvents() {
    CollisionEvent event;
    while ( !collisionEvents.isEmpty() ) {
      event = collisionEvents.remove();
      for ( CollisionListener listener : listeners )
        listener.collisionOccurred(event);
    }
View Full Code Here

TOP

Related Classes of net.javlov.world.CollisionEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.