Class BuildingFloor
- java.lang.Object
-
- net.egartley.beyondorigins.core.abstracts.Renderable
-
- net.egartley.beyondorigins.ingame.BuildingFloor
-
- All Implemented Interfaces:
Tickable
public class BuildingFloor extends Renderable implements Tickable
A floor within aBuilding
where the player can walk around
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.ArrayList<EntityEntityCollision>
changerCollisions
private java.util.ArrayList<BuildingChanger>
changers
private java.util.ArrayList<Entity>
entities
org.newdawn.slick.Image
image
int
leftLimit
int
lowerYLimit
int
number
Building
parent
int
rightLimit
int
upperYLimit
-
Constructor Summary
Constructors Constructor Description BuildingFloor(int number, Building parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChanger(BuildingChanger changer)
void
addEntity(Entity e)
void
checkPlayerLimits()
Ensures the player doesn't move beyond the limits of this floor (into the black)void
onPlayerEnter(BuildingFloor from)
void
onPlayerLeave()
void
render(org.newdawn.slick.Graphics graphics)
void
tick()
-
Methods inherited from class net.egartley.beyondorigins.core.abstracts.Renderable
setPosition, x, x, y, y
-
-
-
-
Field Detail
-
entities
private final java.util.ArrayList<Entity> entities
-
changers
private final java.util.ArrayList<BuildingChanger> changers
-
changerCollisions
private final java.util.ArrayList<EntityEntityCollision> changerCollisions
-
number
public int number
-
upperYLimit
public int upperYLimit
-
lowerYLimit
public int lowerYLimit
-
leftLimit
public int leftLimit
-
rightLimit
public int rightLimit
-
image
public org.newdawn.slick.Image image
-
parent
public Building parent
-
-
Constructor Detail
-
BuildingFloor
public BuildingFloor(int number, Building parent)
-
-
Method Detail
-
onPlayerEnter
public void onPlayerEnter(BuildingFloor from)
-
onPlayerLeave
public void onPlayerLeave()
-
checkPlayerLimits
public void checkPlayerLimits()
Ensures the player doesn't move beyond the limits of this floor (into the black)
-
addChanger
public void addChanger(BuildingChanger changer)
-
addEntity
public void addEntity(Entity e)
-
render
public void render(org.newdawn.slick.Graphics graphics)
- Specified by:
render
in classRenderable
-
-