Class OutriggerService
- java.lang.Object
-
- ch.sahits.game.openpatrician.clientserverinterface.service.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
-
-
Constructor Summary
Constructors Constructor Description OutriggerService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getRequiredWeaponStrength(ICity city)
Calculate the required weapons strength for a city.int
getWeeklyRefund(ICity city)
Calculate the weekly premium.
-
-
-
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.
-
-