Class ListenerClass

java.lang.Object
de.tum.cit.ase.maze.Input.ListenerClass
All Implemented Interfaces:
com.badlogic.gdx.physics.box2d.ContactListener

public class ListenerClass extends Object implements com.badlogic.gdx.physics.box2d.ContactListener
Class that receives collisions from Box2D
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    beginContact(com.badlogic.gdx.physics.box2d.Contact contact)
    Called when two fixtures begin to touch.
    void
    endContact(com.badlogic.gdx.physics.box2d.Contact contact)
    Called when two fixtures cease to touch.
    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 java.lang.Object

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

    • ListenerClass

      public ListenerClass()
  • Method Details

    • beginContact

      public void beginContact(com.badlogic.gdx.physics.box2d.Contact contact)
      Called when two fixtures begin to touch.
      Specified by:
      beginContact in interface com.badlogic.gdx.physics.box2d.ContactListener
      Parameters:
      contact -
    • endContact

      public void endContact(com.badlogic.gdx.physics.box2d.Contact contact)
      Called when two fixtures cease to touch.
      Specified by:
      endContact in interface com.badlogic.gdx.physics.box2d.ContactListener
      Parameters:
      contact -
    • 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
      Parameters:
      contact -
      oldManifold -
    • 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
      Parameters:
      contact -
      impulse -