@Service @Lazy @DependentInitialisation(value=StartNewGameBean.class) public class StateFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
private CityUtilities |
citiesInteractionService |
private CityHallList |
cityHalls |
private CityUtilities |
cityService |
private org.springframework.context.ApplicationContext |
context |
private Date |
date |
private static RandomNameLoader |
firstNameLoader |
private static RandomNameLoader |
lastNameLoader |
private LoanerList |
loaners |
private org.apache.logging.log4j.Logger |
logger |
private IMap |
map |
static double |
NOTICE_WARE_PRICE_FACTOR
Factor by which the price is multiplied for ware notices.
|
private PeopleFactory |
peopleFactory |
private SeaPiratesState |
pirateState |
private Random |
rnd |
private MapSegmentImageFactory |
segmentImageFactory |
| Constructor and Description |
|---|
StateFactory() |
private final org.apache.logging.log4j.Logger logger
private static RandomNameLoader firstNameLoader
private static RandomNameLoader lastNameLoader
public static final double NOTICE_WARE_PRICE_FACTOR
@Autowired private org.springframework.context.ApplicationContext context
@Autowired private CityUtilities citiesInteractionService
@Autowired private Random rnd
@Autowired private PeopleFactory peopleFactory
@Autowired private MapSegmentImageFactory segmentImageFactory
@Autowired private Date date
@Autowired private IMap map
@Autowired private SeaPiratesState pirateState
@Autowired private CityUtilities cityService
@Autowired private CityHallList cityHalls
@Autowired private LoanerList loaners
public TavernState createTavernState(ICity city)
private int getNumberOfGuards(int population)
public ICitizen createCitizen(ICity hometown, ESocialRank rank)
public IPikemen createPikeman()
public IBowmen createBowman()
public ICrossbowmen createCrossbowman()
public IMusketeer createMusketieer()
public IEldermanOffice createEldermanOffice()
public Optional<IHelpCity> createHelpCityEldermanTask()
public Optional<IHelpCity> createHelpCityEldermanTask(IEldermanOffice office)
public Optional<IFoundNewSettlement> createNewSettlementEledermanTask(IEldermanOffice office)
office - public Optional<IBuildLandPassage> createNewLandBridgeEldermanTask(IEldermanOffice office)
office - public Optional<IHuntPirate> createPirateHuntEledermanTask(IEldermanOffice office)
office - public Optional<ICapturePirateNest> createCapturePirateNestEldermanTask(IEldermanOffice office)
office - public IChurch createChurch()
Copyright © 2011-2015 Sahits GmbH. All Rights Reserved.