Class WoodenFence
- java.lang.Object
-
- net.egartley.beyondorigins.core.abstracts.Renderable
-
- net.egartley.beyondorigins.core.abstracts.Entity
-
- net.egartley.beyondorigins.core.abstracts.StaticEntity
-
- net.egartley.beyondorigins.entities.WoodenFence
-
- All Implemented Interfaces:
Tickable
public class WoodenFence extends StaticEntity
Testing dynamic creation of sprites/images
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
hasCorners
private int
length
-
Fields inherited from class net.egartley.beyondorigins.core.abstracts.Entity
boundaries, canCollide, defaultBoundary, deltaX, deltaY, DIRECTION_DOWN, DIRECTION_LEFT, DIRECTION_RIGHT, DIRECTION_UP, firstLayer, health, image, interactions, inventory, isAllowedToMoveDownwards, isAllowedToMoveLeftwards, isAllowedToMoveRightwards, isAllowedToMoveUpwards, isAnimated, isCollided, isDualRendered, isMovingDownwards, isMovingLeftwards, isMovingRightwards, isMovingUpwards, isSectorSpecific, isTraversable, lastCollision, lastCollisionEvent, maximumHealth, name, secondLayer, sheets, speed, sprite, sprites, uuid
-
-
Constructor Summary
Constructors Constructor Description WoodenFence(int length, boolean corners)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Sprite
buildSprite()
protected void
setBoundaries()
Sets the entity's boundariesvoid
setCollisions()
Sets the entity's collisionsprotected void
setInteractions()
Sets the entity's interactions-
Methods inherited from class net.egartley.beyondorigins.core.abstracts.Entity
allowAllMovement, drawDebug, drawFirstLayer, drawSecondLayer, move, onMove, onSectorEnter, onSectorLeave, render, setPosition, setSprite, setSprite, setSprites, tick, toString, x, x, y, y
-
Methods inherited from class net.egartley.beyondorigins.core.abstracts.Renderable
x, y
-
-
-
-
Method Detail
-
buildSprite
private Sprite buildSprite()
-
setBoundaries
protected void setBoundaries()
Description copied from class:Entity
Sets the entity's boundaries- Specified by:
setBoundaries
in classEntity
- See Also:
Entity.boundaries
-
setCollisions
public void setCollisions()
Description copied from class:Entity
Sets the entity's collisions- Specified by:
setCollisions
in classEntity
- See Also:
Entity.boundaries
-
setInteractions
protected void setInteractions()
Description copied from class:Entity
Sets the entity's interactions- Specified by:
setInteractions
in classEntity
- See Also:
Entity.interactions
-
-