Interface IChurch
-
- All Known Implementing Classes:
ChurchState
public interface IChurchModel 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetCollectedDonationsForExtension()Retrieve the amount that was already donated toward the next church extension.EChurchExtensiongetExtensionLevel()Retrieve the next extension level.voidmakeDonation(int amount)Make a donation ofamounttoward the church extension.voidupgrade()Upgrade to the next level.
-
-
-
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 ofamounttoward the church extension.- Parameters:
amount- to donate toward the church extension.
-
-