Class BuildingFloor

    • Field Detail

      • entities

        private final java.util.ArrayList<Entity> entities
      • 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
    • 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)
      • addEntity

        public void addEntity​(Entity e)
      • render

        public void render​(org.newdawn.slick.Graphics graphics)
        Specified by:
        render in class Renderable
      • tick

        public void tick()
        Specified by:
        tick in interface Tickable