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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface org.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 interface org.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 interface org.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 interface org.dyn4j.world.listener.ContactListener<org.dyn4j.dynamics.Body>
    • collision

      public void collision(org.dyn4j.world.ContactCollisionData collision)
      Specified by:
      collision in interface org.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 interface org.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 interface org.dyn4j.world.listener.ContactListener<org.dyn4j.dynamics.Body>