hermes
Class BoundingBoxCollider<A extends Being,B extends Being>

java.lang.Object
  extended by hermes.Interactor<A,B>
      extended by hermes.BoundingBoxCollider<A,B>

public abstract class BoundingBoxCollider<A extends Being,B extends Being>
extends Interactor<A,B>

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

BoundingBoxCollider

public BoundingBoxCollider()
Method Detail

detect

public boolean detect(A being1,
                      B being2)
Description copied from class: Interactor
Determines whether an interaction between two objects has occurred.

Specified by:
detect in class Interactor<A extends Being,B extends Being>
Parameters:
being1 - the first interacting object
being2 - the second interacting object
Returns:
Whether or not an interaction has occurred.