Class Building

  • All Implemented Interfaces:
    Tickable
    Direct Known Subclasses:
    House1

    public class Building
    extends StaticEntity
    A place that the player can enter, treated seperately from the current map
    • Constructor Detail

      • Building

        public Building​(java.lang.String id,
                        int x,
                        int y,
                        int playerLeaveX,
                        int playerLeaveY)
        Creates a new building
        Parameters:
        id - Identifier for the building
        x - The x-coordinate of where to render it
        y - The y-coordinate of where to render it
        playerLeaveX - The x-coordinate of where to put the player when they leave
        playerLeaveY - The y-coordinate of where to put the player when they leave