public class TakeLoanLowMoneyLongestDurationStrategy extends Object implements ch.sahits.game.openpatrician.model.player.IAITakeLoanStrategy
| Modifier and Type | Field and Description |
|---|---|
private ch.sahits.game.openpatrician.model.city.LoanerList |
loaners |
private LoanerService |
loanerService |
| Constructor and Description |
|---|
TakeLoanLowMoneyLongestDurationStrategy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldTakeLoan(ch.sahits.game.openpatrician.model.IAIPlayer player) |
void |
takeLoan(ch.sahits.game.openpatrician.model.IAIPlayer player,
ch.sahits.game.openpatrician.model.city.ICity city) |
@Autowired private ch.sahits.game.openpatrician.model.city.LoanerList loaners
@Autowired private LoanerService loanerService
public TakeLoanLowMoneyLongestDurationStrategy()
public boolean shouldTakeLoan(ch.sahits.game.openpatrician.model.IAIPlayer player)
shouldTakeLoan in interface ch.sahits.game.openpatrician.model.player.IAITakeLoanStrategypublic void takeLoan(ch.sahits.game.openpatrician.model.IAIPlayer player,
ch.sahits.game.openpatrician.model.city.ICity city)
takeLoan in interface ch.sahits.game.openpatrician.model.player.IAITakeLoanStrategyCopyright © 2011-2016 Sahits GmbH. All Rights Reserved.