Class EntityBoundary
- java.lang.Object
-
- net.egartley.beyondorigins.core.logic.interaction.Boundary
-
- net.egartley.beyondorigins.core.logic.interaction.EntityBoundary
-
public class EntityBoundary extends Boundary
-
-
Constructor Summary
Constructors Constructor Description EntityBoundary(Entity entity, int width, int height, BoundaryPadding padding)
Creates a new boundary for the given entityEntityBoundary(Entity entity, int width, int height, BoundaryPadding padding, BoundaryOffset offset)
Creates a new boundary for the given entityEntityBoundary(Entity entity, Sprite sprite, BoundaryPadding padding)
Creates a new boundary for the given entity
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setColor()
void
tick()
java.lang.String
toString()
-
Methods inherited from class net.egartley.beyondorigins.core.logic.interaction.Boundary
asRectangle, draw
-
-
-
-
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 usesprite
- Sprite to use for getting width and heightpadding
- 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 usewidth
- 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 usewidth
- 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 applyoffset
- The offset to apply- See Also:
Boundary
-
-