|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvooga.gameEngine.core.CollisionDetection
public class CollisionDetection
provides collision detection on a list of objects that is updated by calling
the add and remove methods. It detects collisions on all Collidable
objects in the list and calls the physics engin on all collisions.
Nested Class Summary | |
---|---|
(package private) class |
CollisionDetection.XThread
|
(package private) class |
CollisionDetection.YThread
|
Field Summary | |
---|---|
Collidable<? extends Collidable<?>> |
myCollidable
|
Constructor Summary | |
---|---|
CollisionDetection(GameManager manager,
PhysicsEngine physics)
default constructor |
Method Summary | |
---|---|
java.util.List<java.util.List<PhysicalItem>> |
determineCollisions()
determines collisions and calls the collide method for all collisions and updates the physics engine with all Collidable objects |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Collidable<? extends Collidable<?>> myCollidable
Constructor Detail |
---|
public CollisionDetection(GameManager manager, PhysicsEngine physics)
physics
- a Physics engineMethod Detail |
---|
public java.util.List<java.util.List<PhysicalItem>> determineCollisions()
Collidable
objects
dt
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |