Class OutriggerService


  • public class OutriggerService
    extends java.lang.Object
    Service calculationg various values around a cities outrigger.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2015 Created on Mar 21, 2015
    • Field Detail

      • date

        @Autowired
        private Date date
      • map

        @Autowired
        private IMap map
      • firstYear

        @Value("${openpatrician.newGame.startYear:1250}")
        private int firstYear
      • lastYear

        @Value("${openpatrician.newGame.endYear:1400}")
        private int lastYear
    • Constructor Detail

      • OutriggerService

        public OutriggerService()
    • Method Detail

      • getRequiredWeaponStrength

        public int getRequiredWeaponStrength​(ICity city)
        Calculate the required weapons strength for a city.
        Parameters:
        city - for which the weapon strength is to be calculated
        Returns:
        required strength
      • getWeeklyRefund

        public int getWeeklyRefund​(ICity city)
        Calculate the weekly premium.
        Parameters:
        city - for which the refund is to be calculated
        Returns:
        refund amount.