Class EntityBoundary


  • public class EntityBoundary
    extends Boundary
    Represents a Boundary that is specifically tailored for use with an Entity
    • Field Detail

      • parent

        public Entity parent
        The entity in which to base the boundary
      • name

        public java.lang.String name
        Human-readable identification for this entity boundary
    • Constructor Detail

      • EntityBoundary

        public EntityBoundary​(Entity entity,
                              Sprite sprite,
                              BoundaryPadding padding)
        Creates a new boundary for the given entity
        Parameters:
        entity - The entity to use
        sprite - Sprite to use for getting width and height
        padding - The padding to apply
      • EntityBoundary

        public EntityBoundary​(Entity entity,
                              int width,
                              int height,
                              BoundaryPadding padding)
        Creates a new boundary for the given entity
        Parameters:
        entity - The entity to use
        width - Width of the boundary (not including the left or right padding)
        height - Height of the boundary (not including the top or bottom padding)
        padding - The padding to apply
        See Also:
        Boundary
      • EntityBoundary

        public EntityBoundary​(Entity entity,
                              int width,
                              int height,
                              BoundaryPadding padding,
                              BoundaryOffset offset)
        Creates a new boundary for the given entity
        Parameters:
        entity - The entity to use
        width - Width of the boundary (not including the left or right padding)
        height - Height of the boundary (not including the top or bottom padding)
        padding - The padding to apply
        offset - The offset to apply
        See Also:
        Boundary