ch.aplu.jgamegrid
Interface GGActorCollisionListener
- All Superinterfaces:
- java.util.EventListener
- All Known Implementing Classes:
- Actor, CardActor, CardCover, GGButton, GGButtonBase, GGCheckButton, GGRadioButton, GGToggleButton, TextActor, ToolBarItem, ToolBarSeparator, ToolBarStack, ToolBarText
public interface GGActorCollisionListener
- extends java.util.EventListener
Declarations of the notification method called when two actors collide.
(Cannot be used with Jython's constructor callback registration)
Method Summary |
int |
collide(Actor actor1,
Actor actor2)
Event callback method called when actors are colliding. |
collide
int collide(Actor actor1,
Actor actor2)
- Event callback method called when actors are colliding.
The collision is checked in every simulation cycle and the notification
is called before the actor's act().
- Parameters:
actor1
- the active actor the checks his collision candidates for possible collisionsactor2
- the passive actor that sustain the collision
- Returns:
- nb of simulation cycles to wait until collision is rearmed