public class WestCityRandomShipConstructionSelectionStrategy extends RandomShipConstructionSelectionStrategy
| Modifier and Type | Field and Description |
|---|---|
private org.springframework.context.ApplicationContext |
context |
private ch.sahits.game.openpatrician.model.map.IMap |
map |
private Random |
rnd |
| Constructor and Description |
|---|
WestCityRandomShipConstructionSelectionStrategy() |
| Modifier and Type | Method and Description |
|---|---|
(package private) ch.sahits.game.openpatrician.model.city.ICity |
calculateCostructionCity() |
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.ship.INavigableVessel vessel,
ch.sahits.game.openpatrician.model.ship.EShipType shipType) |
shouldBuildShipTypegetFleetCapacity, selectCollectingVessel, shouldOrderNewConstruction@Autowired private ch.sahits.game.openpatrician.model.map.IMap map
@Autowired private Random rnd
@Autowired private org.springframework.context.ApplicationContext context
public WestCityRandomShipConstructionSelectionStrategy()
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.ship.INavigableVessel vessel,
ch.sahits.game.openpatrician.model.ship.EShipType shipType)
ch.sahits.game.openpatrician.model.city.ICity calculateCostructionCity()
Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.