Class PopulationUpdateStats
- java.lang.Object
-
- ch.sahits.game.openpatrician.model.city.impl.PopulationUpdateStats
-
public class PopulationUpdateStats extends java.lang.ObjectContainer to keep track of state that is required for the population update- Author:
- Andi Hotz, (c) Sahits GmbH, 2017 Created on Nov 05, 2017
-
-
Constructor Summary
Constructors Constructor Description PopulationUpdateStats()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidarrives(INavigableVessel vessel)Arriving shipsvoiddepart(INavigableVessel vessel)Departing ships.voidfeedingThePoor()Indicate that the poor were feed.voidhiredInWorkshop(int nbWorkers)Number of workers hired in workshopsvoidhireSailors(int nbSailors)Amount of sailors hired.voidreset()Reset the state.
-
-
-
Method Detail
-
reset
public void reset()
Reset the state.
-
hireSailors
public void hireSailors(int nbSailors)
Amount of sailors hired.- Parameters:
nbSailors- number of sailors that were hired
-
feedingThePoor
public void feedingThePoor()
Indicate that the poor were feed.
-
hiredInWorkshop
public void hiredInWorkshop(int nbWorkers)
Number of workers hired in workshops- Parameters:
nbWorkers- number of workers that were hired
-
arrives
public void arrives(INavigableVessel vessel)
Arriving ships- Parameters:
vessel- that arrived
-
depart
public void depart(INavigableVessel vessel)
Departing ships.- Parameters:
vessel- that departed
-
-