@Component @Lazy public class GuildEngine extends AbstractEngine
| Modifier and Type | Field and Description |
|---|---|
private ch.sahits.game.openpatrician.model.AIPlayerList |
aiPlayers |
private AuctionEngine |
auctionEngine |
private ch.sahits.game.openpatrician.model.DateService |
dateService |
private ch.sahits.game.openpatrician.model.city.guild.GuildList |
guildList |
private StateFactory |
stateFactory |
private com.google.common.eventbus.AsyncEventBus |
timerEventBus |
| Constructor and Description |
|---|
GuildEngine() |
| Modifier and Type | Method and Description |
|---|---|
void |
establishGuild(ch.sahits.game.openpatrician.model.city.ICity city) |
List<AbstractEngine> |
getChildren()
Any engine may hold various child engines.
|
private void |
handleAuction(ch.sahits.game.openpatrician.model.city.guild.IAuction auction,
ch.sahits.game.openpatrician.model.city.guild.IGuild guild) |
void |
handleDailyUpdate(ClockTickDayChange event) |
private void |
init() |
private void |
unregister() |
@Autowired private StateFactory stateFactory
@Autowired private ch.sahits.game.openpatrician.model.city.guild.GuildList guildList
@Autowired private ch.sahits.game.openpatrician.model.DateService dateService
@Autowired private ch.sahits.game.openpatrician.model.AIPlayerList aiPlayers
@Autowired private AuctionEngine auctionEngine
@Autowired @Qualifier(value="timerEventBus") private com.google.common.eventbus.AsyncEventBus timerEventBus
@PostConstruct private void init()
@PreDestroy private void unregister()
public void establishGuild(ch.sahits.game.openpatrician.model.city.ICity city)
public List<AbstractEngine> getChildren()
AbstractEnginegetChildren in class AbstractEnginepublic void handleDailyUpdate(ClockTickDayChange event)
private void handleAuction(ch.sahits.game.openpatrician.model.city.guild.IAuction auction,
ch.sahits.game.openpatrician.model.city.guild.IGuild guild)
Copyright © 2011-2017 Sahits GmbH. All Rights Reserved.