Class ContactMultiplexer

java.lang.Object
net.dermetfan.gdx.Multiplexer<com.badlogic.gdx.physics.box2d.ContactListener>
net.dermetfan.gdx.physics.box2d.ContactMultiplexer
All Implemented Interfaces:
com.badlogic.gdx.physics.box2d.ContactListener

public class ContactMultiplexer
extends net.dermetfan.gdx.Multiplexer<com.badlogic.gdx.physics.box2d.ContactListener>
implements com.badlogic.gdx.physics.box2d.ContactListener
a ContactListener that sends Contacts to an Array of ContactListeners
  • Field Summary

    Fields inherited from class net.dermetfan.gdx.Multiplexer

    receivers
  • Constructor Summary

    Constructors
    Constructor Description
    ContactMultiplexer​(com.badlogic.gdx.physics.box2d.ContactListener... receivers)  
    ContactMultiplexer​(com.badlogic.gdx.utils.Array<com.badlogic.gdx.physics.box2d.ContactListener> receivers)  
  • Method Summary

    Modifier and Type Method Description
    void beginContact​(com.badlogic.gdx.physics.box2d.Contact contact)  
    void endContact​(com.badlogic.gdx.physics.box2d.Contact contact)  
    void postSolve​(com.badlogic.gdx.physics.box2d.Contact contact, com.badlogic.gdx.physics.box2d.ContactImpulse impulse)  
    void preSolve​(com.badlogic.gdx.physics.box2d.Contact contact, com.badlogic.gdx.physics.box2d.Manifold oldManifold)  

    Methods inherited from class net.dermetfan.gdx.Multiplexer

    add, clear, getReceivers, remove, setReceivers, setReceivers, size

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ContactMultiplexer

      public ContactMultiplexer​(com.badlogic.gdx.physics.box2d.ContactListener... receivers)
    • ContactMultiplexer

      public ContactMultiplexer​(com.badlogic.gdx.utils.Array<com.badlogic.gdx.physics.box2d.ContactListener> receivers)
  • Method Details

    • beginContact

      public void beginContact​(com.badlogic.gdx.physics.box2d.Contact contact)
      Specified by:
      beginContact in interface com.badlogic.gdx.physics.box2d.ContactListener
    • preSolve

      public void preSolve​(com.badlogic.gdx.physics.box2d.Contact contact, com.badlogic.gdx.physics.box2d.Manifold oldManifold)
      Specified by:
      preSolve in interface com.badlogic.gdx.physics.box2d.ContactListener
    • postSolve

      public void postSolve​(com.badlogic.gdx.physics.box2d.Contact contact, com.badlogic.gdx.physics.box2d.ContactImpulse impulse)
      Specified by:
      postSolve in interface com.badlogic.gdx.physics.box2d.ContactListener
    • endContact

      public void endContact​(com.badlogic.gdx.physics.box2d.Contact contact)
      Specified by:
      endContact in interface com.badlogic.gdx.physics.box2d.ContactListener