|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hermes.Interactor<A,B> hermes.BoundingBoxCollider<A,B>
public abstract class BoundingBoxCollider<A extends Being,B extends Being>
A basic collision detector. detect
will return true if the bounding boxes of the beings overlap.
The implementation of handle
is left to the child classes.
Constructor Summary | |
---|---|
BoundingBoxCollider()
|
Method Summary | |
---|---|
boolean |
detect(A being1,
B being2)
Determines whether an interaction between two objects has occurred. |
Methods inherited from class hermes.Interactor |
---|
appliedImmediately, handle, multisampled |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BoundingBoxCollider()
Method Detail |
---|
public boolean detect(A being1, B being2)
Interactor
detect
in class Interactor<A extends Being,B extends Being>
being1
- the first interacting objectbeing2
- the second interacting object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |