|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthermes.Interactor<A,B>
hermes.Collider<A,B>
public abstract class Collider<A extends Being,B extends Being>
An Interactor that detects collisions between Beings based on their shape.
A collision will be detected if the HShapes of the Beings overlap.
Implementation of handle() (which gets called if a collision is detected) is left to the child class.
| Constructor Summary | |
|---|---|
Collider()
|
|
| 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 Collider()
| 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 | |||||||||