Package org.ironmaple.simulation
Class IntakeSimulation.GamePieceContactListener
java.lang.Object
org.ironmaple.simulation.IntakeSimulation.GamePieceContactListener
- All Implemented Interfaces:
org.dyn4j.world.listener.ContactListener<org.dyn4j.dynamics.Body>
,org.dyn4j.world.listener.WorldEventListener
- Enclosing class:
- IntakeSimulation
public final class IntakeSimulation.GamePieceContactListener
extends Object
implements org.dyn4j.world.listener.ContactListener<org.dyn4j.dynamics.Body>
The ContactListener
for the Intake Simulation.
This class can be added to the simulation world to detect and manage contacts between the intake and
GamePieceOnFieldSimulation
instances of the type IntakeSimulation.targetedGamePieceType
.
If contact is detected and the intake is running, the GamePieceOnFieldSimulation
will be marked for
removal from the field.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
begin
(org.dyn4j.world.ContactCollisionData collision, org.dyn4j.dynamics.contact.Contact contact) void
collision
(org.dyn4j.world.ContactCollisionData collision) void
destroyed
(org.dyn4j.world.ContactCollisionData collision, org.dyn4j.dynamics.contact.Contact contact) void
end
(org.dyn4j.world.ContactCollisionData collision, org.dyn4j.dynamics.contact.Contact contact) void
persist
(org.dyn4j.world.ContactCollisionData collision, org.dyn4j.dynamics.contact.Contact oldContact, org.dyn4j.dynamics.contact.Contact newContact) void
postSolve
(org.dyn4j.world.ContactCollisionData collision, org.dyn4j.dynamics.contact.SolvedContact contact) void
preSolve
(org.dyn4j.world.ContactCollisionData collision, org.dyn4j.dynamics.contact.Contact contact)
-
Constructor Details
-
GamePieceContactListener
public GamePieceContactListener()
-
-
Method Details
-
begin
public void begin(org.dyn4j.world.ContactCollisionData collision, org.dyn4j.dynamics.contact.Contact contact) - Specified by:
begin
in interfaceorg.dyn4j.world.listener.ContactListener<org.dyn4j.dynamics.Body>
-
persist
public void persist(org.dyn4j.world.ContactCollisionData collision, org.dyn4j.dynamics.contact.Contact oldContact, org.dyn4j.dynamics.contact.Contact newContact) - Specified by:
persist
in interfaceorg.dyn4j.world.listener.ContactListener<org.dyn4j.dynamics.Body>
-
end
public void end(org.dyn4j.world.ContactCollisionData collision, org.dyn4j.dynamics.contact.Contact contact) - Specified by:
end
in interfaceorg.dyn4j.world.listener.ContactListener<org.dyn4j.dynamics.Body>
-
destroyed
public void destroyed(org.dyn4j.world.ContactCollisionData collision, org.dyn4j.dynamics.contact.Contact contact) - Specified by:
destroyed
in interfaceorg.dyn4j.world.listener.ContactListener<org.dyn4j.dynamics.Body>
-
collision
public void collision(org.dyn4j.world.ContactCollisionData collision) - Specified by:
collision
in interfaceorg.dyn4j.world.listener.ContactListener<org.dyn4j.dynamics.Body>
-
preSolve
public void preSolve(org.dyn4j.world.ContactCollisionData collision, org.dyn4j.dynamics.contact.Contact contact) - Specified by:
preSolve
in interfaceorg.dyn4j.world.listener.ContactListener<org.dyn4j.dynamics.Body>
-
postSolve
public void postSolve(org.dyn4j.world.ContactCollisionData collision, org.dyn4j.dynamics.contact.SolvedContact contact) - Specified by:
postSolve
in interfaceorg.dyn4j.world.listener.ContactListener<org.dyn4j.dynamics.Body>
-