Class BuildingChanger
- 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.BuildingChanger
-
- All Implemented Interfaces:
Tickable
public class BuildingChanger extends StaticEntity
An area that will trigger a change in the player's location and floor within a building
-
-
Field Summary
Fields Modifier and Type Field Description byte
action
static byte
DOWNSTAIRS
int
height
static byte
JUMP
Same as up or down, but doesn't mean the change is directly the floor above or belowint
jumpNumber
static byte
LEAVE
static byte
UPSTAIRS
int
width
-
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 BuildingChanger(byte action, int x, int y, int width, int height)
BuildingChanger(byte action, int jumpNumber, int x, int y, int width, int height)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Field Detail
-
width
public int width
-
height
public int height
-
jumpNumber
public int jumpNumber
-
action
public byte action
-
UPSTAIRS
public static final byte UPSTAIRS
- See Also:
- Constant Field Values
-
DOWNSTAIRS
public static final byte DOWNSTAIRS
- See Also:
- Constant Field Values
-
LEAVE
public static final byte LEAVE
- See Also:
- Constant Field Values
-
JUMP
public static final byte JUMP
Same as up or down, but doesn't mean the change is directly the floor above or below- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
-