Class PopulationUpdateStats


  • public class PopulationUpdateStats
    extends java.lang.Object
    Container 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 Detail

      • PopulationUpdateStats

        public PopulationUpdateStats()
    • 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