public class HometownBiggestShipConstructionSelectionStrategy extends BaseShipConstructionSelectionStrategy
| Modifier and Type | Field and Description |
|---|---|
private org.springframework.context.ApplicationContext |
context |
| Constructor and Description |
|---|
HometownBiggestShipConstructionSelectionStrategy() |
| Modifier and Type | Method and Description |
|---|---|
private ch.sahits.game.openpatrician.model.ship.EShipType |
biggestShipType(List<ch.sahits.game.openpatrician.model.ship.EShipType> shipTypes) |
ch.sahits.game.openpatrician.model.city.ICity |
getBuildLocation(ch.sahits.game.openpatrician.model.IAIPlayer player)
The build location is always the players hometown.
|
void |
initShipConstruction(ch.sahits.game.openpatrician.model.IAIPlayer player,
ch.sahits.game.openpatrician.model.city.ICity buildLocation,
ch.sahits.game.openpatrician.model.ship.EShipType shipType) |
ch.sahits.game.openpatrician.model.ship.EShipType |
shouldBuildShipType(ch.sahits.game.openpatrician.model.IAIPlayer player) |
getFleetCapacity, selectCollectingVessel, shouldOrderNewConstructionpublic HometownBiggestShipConstructionSelectionStrategy()
public ch.sahits.game.openpatrician.model.ship.EShipType shouldBuildShipType(ch.sahits.game.openpatrician.model.IAIPlayer player)
private ch.sahits.game.openpatrician.model.ship.EShipType biggestShipType(List<ch.sahits.game.openpatrician.model.ship.EShipType> shipTypes)
public ch.sahits.game.openpatrician.model.city.ICity getBuildLocation(ch.sahits.game.openpatrician.model.IAIPlayer player)
player - public void initShipConstruction(ch.sahits.game.openpatrician.model.IAIPlayer player,
ch.sahits.game.openpatrician.model.city.ICity buildLocation,
ch.sahits.game.openpatrician.model.ship.EShipType shipType)
Copyright © 2011-2017 Sahits GmbH. All Rights Reserved.