Class ReputationEngine


  • @Lazy
    @Service
    @DependentInitialisation(ch.sahits.game.openpatrician.model.initialisation.StartNewGameBean.class)
    public class ReputationEngine
    extends AbstractEngine
    Engine to handle the reputation changes.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<AbstractEngine> getChildren()
      Any engine may hold various child engines.
      void handlePirateDefeated​(ch.sahits.game.openpatrician.event.data.ShipAttackEvent event)  
      void handlePirateDefeated​(ch.sahits.game.openpatrician.event.data.ShipDefenseEvent event)  
      • Methods inherited from class java.lang.Object

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

      • ReputationEngine

        public ReputationEngine()
    • Method Detail

      • 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.
      • handlePirateDefeated

        public void handlePirateDefeated​(ch.sahits.game.openpatrician.event.data.ShipAttackEvent event)
      • handlePirateDefeated

        public void handlePirateDefeated​(ch.sahits.game.openpatrician.event.data.ShipDefenseEvent event)