Interface IBuilding

    • Method Detail

      • getOwner

        IPlayer getOwner()
        Retrieve the owner of the trading office
        Returns:
        owner of the building
      • setOwner

        void setOwner​(IPlayer newOwner)
        Some buildings may be sold to other players.
        Parameters:
        newOwner - owner of the building
      • getPropertyTax

        int getPropertyTax()
        Retrieve the amount of property taxes per week
        Returns:
        property tax of the building per week.
      • getValue

        int getValue()
        Retrieve the value of the building
        Returns:
        value of the building
      • destroy

        void destroy()
        Execute when the building is destroyed.
      • getCity

        ICity getCity()
        Retreive the location of the building.
        Returns:
        city in which the building stands.