Interface ICityGuard
-
- All Known Subinterfaces:
IBowmen,ICrossbowmen,IMusketeer,IPikemen
- All Known Implementing Classes:
Bowmen,CityGuard,Crossbowmen,Musketeer,Pikemen
public interface ICityGuardCity guard.- Author:
- Andi Hotz, (c) Sahits GmbH, 2014 Created on Dec 31, 2014
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetAmount()Amount of the city guard.intgetWeeklySalary()Weekly salary per guard.voidupdate(int amount)Change the amount by a positive or negative amount.
-
-
-
Method Detail
-
getAmount
int getAmount()
Amount of the city guard.- Returns:
- number of city guards
-
update
void update(int amount)
Change the amount by a positive or negative amount.- Parameters:
amount- new number of city guards.
-
getWeeklySalary
int getWeeklySalary()
Weekly salary per guard.- Returns:
- weekly salary per guard.
-
-