Interface IChurch

  • All Known Implementing Classes:
    ChurchState

    public interface IChurch
    Model for the church. The church model is very simple as most actions executed on the church do not need any model data.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2015 Created on Jun 21, 2015
    • Method Detail

      • getExtensionLevel

        EChurchExtension getExtensionLevel()
        Retrieve the next extension level.
        Returns:
        extension level
      • upgrade

        void upgrade()
        Upgrade to the next level.
      • getCollectedDonationsForExtension

        int getCollectedDonationsForExtension()
        Retrieve the amount that was already donated toward the next church extension.
        Returns:
        collected amount of donations for the next extension.
      • makeDonation

        void makeDonation​(int amount)
        Make a donation of amount toward the church extension.
        Parameters:
        amount - to donate toward the church extension.