Interface IBuildingProduction


  • public interface IBuildingProduction
    Defineing the needed interface for the production in buildings.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2016 Created on May 15, 2016
    • Method Detail

      • getTotalProduction

        int getTotalProduction​(IWare ware,
                               ICity city)
        Compute the total amount of ware that is produced in the city within a week
        Parameters:
        ware - that is produced
        city - in witch the ware is produced
        Returns:
        total amount of all the production by all the players in the city
      • getTotalConsumtion

        int getTotalConsumtion​(IWare ware,
                               ICity city)
        Retrieve the amount the workshops consume to produce the ware within a week
        Parameters:
        ware - that is consumed
        city - in witch the ware is consumed
        Returns:
        amount of the ware that is consumed
      • getProduction

        int getProduction​(IWare ware,
                          ICity city,
                          IPlayer player)
        Compute the total amount of ware the player produces in the city within a week
        Parameters:
        ware - that is produced
        city - in witch the ware is produced
        player - that produces the ware
        Returns:
        total amount of the ware produced by that player in the city