Class BodyUserData

java.lang.Object
com.deco2800.game.physics.BodyUserData

public class BodyUserData
extends java.lang.Object
POJO which contains the custom data attached to each box2D entity. Avoid extending if possible, since the additional references have to be attached to every physics entity.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    Entity entity
    The entity to which this body is attached
  • Constructor Summary

    Constructors 
    Constructor Description
    BodyUserData()  
  • Method Summary

    Methods inherited from class java.lang.Object

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

    • entity

      public Entity entity
      The entity to which this body is attached
  • Constructor Details