Interface ISteward
-
- All Known Implementing Classes:
Steward
public interface IStewardInterface defining the steward- Author:
- Andi Hotz, (c) Sahits GmbH, 2012 Created on Jul 20, 2012
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetExpertiseLevel()Retrieve the level of expertise of the stewardintgetSalary()Retrieve the weekly salary of the stewardintgetTotalProfit()Retrieve the amount of profit the steward made.voidupdateProfit(int profit)Add the profit the total profit.voidupgradeToNextLevel()Increase the experiance level by one.
-
-
-
Method Detail
-
getExpertiseLevel
int getExpertiseLevel()
Retrieve the level of expertise of the steward- Returns:
- level of expertise
-
upgradeToNextLevel
void upgradeToNextLevel()
Increase the experiance level by one. The highest level i 5.
-
getSalary
int getSalary()
Retrieve the weekly salary of the steward- Returns:
- current sallery per week.
-
getTotalProfit
int getTotalProfit()
Retrieve the amount of profit the steward made. The profit defines when the next level is reached.- Returns:
- total profit.
-
updateProfit
void updateProfit(int profit)
Add the profit the total profit.- Parameters:
profit- additional profit to the total (may be negative)
-
-