public class DailyPlayerUpdater
extends ch.sahits.game.openpatrician.model.event.TimedTask
| Modifier and Type | Field and Description |
|---|---|
private ch.sahits.game.openpatrician.model.Date |
date |
private ch.sahits.game.openpatrician.model.map.IMap |
map |
private PlayerProductionService |
playerProductionService |
private ch.sahits.game.openpatrician.model.PlayerList |
players |
private ServerSideTaskFactory |
taskFactory |
private ch.sahits.game.openpatrician.model.event.TimedUpdatableTaskList |
taskList |
private TradeManagerService |
tradeManagerService |
| Constructor and Description |
|---|
DailyPlayerUpdater() |
| Modifier and Type | Method and Description |
|---|---|
private List<ch.sahits.game.openpatrician.model.building.ITradingOffice> |
findTradingOddices(ch.sahits.game.openpatrician.model.IPlayer player) |
private java.time.LocalDateTime |
getScheduledDateDailyUpdate() |
private void |
handleDailyUpdates() |
private void |
handleTradingOfficeUpdates(List<ch.sahits.game.openpatrician.model.building.ITradingOffice> offices) |
private void |
handleWorkshopConsumptionAndProduction(List<ch.sahits.game.openpatrician.model.building.ITradingOffice> offices) |
private void |
initialize() |
void |
run() |
private void |
scheduleNextDayUpdate() |
@Autowired private ch.sahits.game.openpatrician.model.Date date
@Autowired private ch.sahits.game.openpatrician.model.event.TimedUpdatableTaskList taskList
@Autowired private ch.sahits.game.openpatrician.model.PlayerList players
@Autowired private ch.sahits.game.openpatrician.model.map.IMap map
@Autowired private ServerSideTaskFactory taskFactory
@Autowired private TradeManagerService tradeManagerService
@Autowired private PlayerProductionService playerProductionService
@PostConstruct private void initialize()
private java.time.LocalDateTime getScheduledDateDailyUpdate()
public void run()
private void handleDailyUpdates()
private void handleWorkshopConsumptionAndProduction(List<ch.sahits.game.openpatrician.model.building.ITradingOffice> offices)
private List<ch.sahits.game.openpatrician.model.building.ITradingOffice> findTradingOddices(ch.sahits.game.openpatrician.model.IPlayer player)
private void handleTradingOfficeUpdates(List<ch.sahits.game.openpatrician.model.building.ITradingOffice> offices)
private void scheduleNextDayUpdate()
Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.