public class ClockTickTimer
extends ch.sahits.game.openpatrician.util.Timer
| Modifier and Type | Field and Description |
|---|---|
private com.google.common.eventbus.AsyncEventBus |
clientServerEventBus |
private ch.sahits.game.openpatrician.model.Date |
clock |
private static Object |
lock
Lock for guaranteeing thread safety
|
private org.apache.logging.log4j.Logger |
logger |
private com.google.common.eventbus.AsyncEventBus |
serverEventBus |
| Constructor and Description |
|---|
ClockTickTimer(long interval,
long duration) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
onFinish() |
protected void |
onTick() |
void |
tick()
Update the time by one tick.
|
private final org.apache.logging.log4j.Logger logger
@Autowired private ch.sahits.game.openpatrician.model.Date clock
@Autowired @Qualifier(value="serverEventBus") private com.google.common.eventbus.AsyncEventBus serverEventBus
@Autowired @Qualifier(value="serverClientEventBus") private com.google.common.eventbus.AsyncEventBus clientServerEventBus
private static Object lock
Copyright © 2011-2015 Sahits GmbH. All Rights Reserved.