public class PlageTimedTask
extends ch.sahits.game.openpatrician.model.event.TimedTask
| Modifier and Type | Field and Description |
|---|---|
private ch.sahits.game.openpatrician.model.city.ICity |
city |
private com.google.common.eventbus.AsyncEventBus |
clientServerEventBus |
private int |
duration |
private EventService |
eventService |
private org.joda.time.DateTime |
plagueEnd |
private org.joda.time.DateTime |
plagueStart |
private ch.sahits.game.openpatrician.model.PlayerList |
players |
private int |
popultation |
private Random |
rnd |
| Constructor and Description |
|---|
PlageTimedTask(int popultation,
int duration,
ch.sahits.game.openpatrician.model.city.ICity city,
org.joda.time.DateTime plagueStart,
org.joda.time.DateTime plagueEnd) |
| Modifier and Type | Method and Description |
|---|---|
void |
run() |
@Autowired private Random rnd
@Autowired private ch.sahits.game.openpatrician.model.PlayerList players
@Autowired @Qualifier(value="serverClientEventBus") private com.google.common.eventbus.AsyncEventBus clientServerEventBus
@Autowired private EventService eventService
private int popultation
private int duration
private ch.sahits.game.openpatrician.model.city.ICity city
private org.joda.time.DateTime plagueStart
private org.joda.time.DateTime plagueEnd
Copyright © 2011-2017 Sahits GmbH. All Rights Reserved.