public class ChurchEngine extends AbstractEngine
| Modifier and Type | Field and Description |
|---|---|
private ch.sahits.game.openpatrician.model.collection.CityChurchRegistry |
churchMap |
private com.google.common.eventbus.AsyncEventBus |
clientServerEventBus |
private ch.sahits.game.openpatrician.model.Date |
date |
private EngineFactory |
engineFactory |
private Random |
rnd |
private ch.sahits.game.openpatrician.model.factory.StateFactory |
stateFactory |
private ch.sahits.game.openpatrician.model.event.TimedUpdatableTaskList |
timedTaskListener |
| 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.
|
ch.sahits.game.openpatrician.model.city.IChurch |
getChurch(ch.sahits.game.openpatrician.model.city.ICity city) |
void |
handleWeeklyUpdate(PeriodicalTimeWeekEndUpdate event) |
private void |
init() |
private void |
unregister() |
@Autowired @Qualifier(value="serverClientEventBus") private com.google.common.eventbus.AsyncEventBus clientServerEventBus
@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 EngineFactory engineFactory
@Autowired private ch.sahits.game.openpatrician.model.factory.StateFactory stateFactory
@Autowired private ch.sahits.game.openpatrician.model.collection.CityChurchRegistry churchMap
@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)
public ch.sahits.game.openpatrician.model.city.IChurch getChurch(ch.sahits.game.openpatrician.model.city.ICity city)
Copyright © 2011-2016 Sahits GmbH. All Rights Reserved.