Class Shipyards
- java.lang.Object
-
- ch.sahits.game.openpatrician.model.city.Shipyards
-
-
Constructor Summary
Constructors Constructor Description Shipyards()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(IShipyard shipyard, ICity city)Add a shipyard in the city.IShipyardgetShipyard(ICity city)Retrieve the shipyard of the city.java.util.Iterator<java.util.Map.Entry<ICity,IShipyard>>iterator()
-
-
-
Method Detail
-
add
public void add(IShipyard shipyard, ICity city)
Add a shipyard in the city.- Parameters:
shipyard- to be addedcity- in which to add the shipyard
-
getShipyard
public IShipyard getShipyard(ICity city)
Retrieve the shipyard of the city. This method should not be called when there is no shipyard at all.- Parameters:
city- for which to lookup the shipyard- Returns:
- shipyard of
city
-
-