Class Collider<A extends Being,B extends Being>
public abstract class Collider<A extends Being,B extends Being>
- extends Interactor<A,B>
Interactor that detects collisions between
Beings based on their shape.
A collision will be detected if the
HShapes of the
handle() (which gets called if a collision is detected) is left to the child class.
Determines whether an interaction between two objects has occurred.
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public boolean detect(A being1,
- Description copied from class:
- Determines whether an interaction between two objects has occurred.
- Specified by:
detect in class
Interactor<A extends Being,B extends Being>
being1 - the first interacting object
being2 - the second interacting object
- Whether or not an interaction has occurred.