Class TakeLoanLowMoneyLongestDurationStrategy
- java.lang.Object
-
- ch.sahits.game.openpatrician.engine.player.strategy.TakeLoanLowMoneyLongestDurationStrategy
-
- All Implemented Interfaces:
ch.sahits.game.openpatrician.model.player.IAITakeLoanStrategy
public class TakeLoanLowMoneyLongestDurationStrategy extends java.lang.Object implements ch.sahits.game.openpatrician.model.player.IAITakeLoanStrategyStrategy for loan taking. The strategy takes effect when the money is low and taking the loan with the longest duration.- Author:
- Andi Hotz, (c) Sahits GmbH, 2016 Created on Jun 12, 2016
-
-
Constructor Summary
Constructors Constructor Description TakeLoanLowMoneyLongestDurationStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanshouldTakeLoan(ch.sahits.game.openpatrician.model.IAIPlayer player)voidtakeLoan(ch.sahits.game.openpatrician.model.IAIPlayer player, ch.sahits.game.openpatrician.model.city.ICity city)
-
-
-
Method Detail
-
shouldTakeLoan
public boolean shouldTakeLoan(ch.sahits.game.openpatrician.model.IAIPlayer player)
- Specified by:
shouldTakeLoanin interfacech.sahits.game.openpatrician.model.player.IAITakeLoanStrategy
-
takeLoan
public void takeLoan(ch.sahits.game.openpatrician.model.IAIPlayer player, ch.sahits.game.openpatrician.model.city.ICity city)- Specified by:
takeLoanin interfacech.sahits.game.openpatrician.model.player.IAITakeLoanStrategy
-
-