Class CityGuard
- java.lang.Object
-
- ch.sahits.game.openpatrician.model.city.cityhall.impl.CityGuard
-
- All Implemented Interfaces:
ICityGuard
- Direct Known Subclasses:
Bowmen
,Crossbowmen
,Musketeer
,Pikemen
public abstract class CityGuard extends java.lang.Object implements ICityGuard
- Author:
- Andi Hotz, (c) Sahits GmbH, 2014 Created on Dec 31, 2014
-
-
Field Summary
Fields Modifier and Type Field Description private int
amount
-
Constructor Summary
Constructors Constructor Description CityGuard()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
update(int amount)
Change the amount by a positive or negative amount.-
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.city.cityhall.ICityGuard
getAmount, getWeeklySalary
-
-
-
-
Method Detail
-
update
public void update(int amount)
Description copied from interface:ICityGuard
Change the amount by a positive or negative amount.- Specified by:
update
in interfaceICityGuard
- Parameters:
amount
- new number of city guards.
-
-