public class ChurchEngine extends AbstractEngine
| Modifier and Type | Field and Description |
|---|---|
private ch.sahits.game.openpatrician.model.collection.CityChurchRegistry |
churchMap |
private ModelStateAccessor |
churchProvider |
private ch.sahits.game.openpatrician.model.Date |
date |
private Random |
rnd |
private StateFactory |
stateFactory |
private ServerSideTaskFactory |
taskFactory |
private ch.sahits.game.openpatrician.model.event.TimedUpdatableTaskList |
timedTaskListener |
private com.google.common.eventbus.AsyncEventBus |
timerEventBus |
| Constructor and Description |
|---|
ChurchEngine() |
| Modifier and Type | Method and Description |
|---|---|
void |
establishChurch(ch.sahits.game.openpatrician.model.city.ICity city) |
List<AbstractEngine> |
getChildren()
Any engine may hold various child engines.
|
void |
handleWeeklyUpdate(PeriodicalTimeWeekEndUpdate event) |
private void |
init() |
private void |
unregister() |
@Autowired @Qualifier(value="timerEventBus") private com.google.common.eventbus.AsyncEventBus timerEventBus
@Autowired private Random rnd
@Autowired private ch.sahits.game.openpatrician.model.Date date
@Autowired private ch.sahits.game.openpatrician.model.event.TimedUpdatableTaskList timedTaskListener
@Autowired private StateFactory stateFactory
@Autowired private ch.sahits.game.openpatrician.model.collection.CityChurchRegistry churchMap
@Autowired private ModelStateAccessor churchProvider
@Autowired private ServerSideTaskFactory taskFactory
@PostConstruct private void init()
@PreDestroy private void unregister()
public List<AbstractEngine> getChildren()
AbstractEnginegetChildren in class AbstractEnginepublic void handleWeeklyUpdate(PeriodicalTimeWeekEndUpdate event)
public void establishChurch(ch.sahits.game.openpatrician.model.city.ICity city)
Copyright © 2011-2017 Sahits GmbH. All Rights Reserved.