Class Steward
- java.lang.Object
-
- ch.sahits.game.openpatrician.model.building.impl.Steward
-
-
Constructor Summary
Constructors Constructor Description Steward()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetTotalProfit()Retrieve the amount of profit the steward made.voidupdateProfit(int profit)Add the profit the total profit.voidupgradeToNextLevel()Increase the experiance level by one.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ch.sahits.game.openpatrician.model.building.ISteward
getExpertiseLevel, getSalary
-
-
-
-
Method Detail
-
getTotalProfit
public int getTotalProfit()
Description copied from interface:IStewardRetrieve the amount of profit the steward made. The profit defines when the next level is reached.- Specified by:
getTotalProfitin interfaceISteward- Returns:
- total profit.
-
updateProfit
public void updateProfit(int profit)
Description copied from interface:IStewardAdd the profit the total profit.- Specified by:
updateProfitin interfaceISteward- Parameters:
profit- additional profit to the total (may be negative)
-
upgradeToNextLevel
public void upgradeToNextLevel()
Description copied from interface:IStewardIncrease the experiance level by one. The highest level i 5.- Specified by:
upgradeToNextLevelin interfaceISteward
-
-