Class TavernEngine


  • @Component
    @Lazy
    @DependentInitialisation(ch.sahits.game.openpatrician.model.initialisation.StartNewGameBean.class)
    public class TavernEngine
    extends AbstractEngine
    Every city has a corresponding tavern engine. The guests in a tavern may change on a daily basis
    Author:
    Andi Hotz, (c) Sahits GmbH, 2013 Created on Jan 19, 2013
    • Constructor Summary

      Constructors 
      Constructor Description
      TavernEngine()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addCity​(ch.sahits.game.openpatrician.model.city.impl.TavernState state, ch.sahits.game.openpatrician.model.city.ICity city)  
      java.util.List<AbstractEngine> getChildren()
      Any engine may hold various child engines.
      void handleDayChange​(ch.sahits.game.event.data.ClockTickDayChange event)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TavernEngine

        public TavernEngine()
    • Method Detail

      • addCity

        public void addCity​(ch.sahits.game.openpatrician.model.city.impl.TavernState state,
                            ch.sahits.game.openpatrician.model.city.ICity city)
      • getChildren

        public java.util.List<AbstractEngine> getChildren()
        Description copied from class: AbstractEngine
        Any engine may hold various child engines. This is the way to retrieve them. If there are no child engines, return an empty list. Subclasses have to implement this in the proper way.
        Specified by:
        getChildren in class AbstractEngine
        Returns:
        list of child engines.
      • handleDayChange

        public void handleDayChange​(ch.sahits.game.event.data.ClockTickDayChange event)