public class ShipPositionUpdateTask
extends ch.sahits.game.openpatrician.model.event.PausableSchedulableTask
| Modifier and Type | Field and Description |
|---|---|
private com.google.common.eventbus.AsyncEventBus |
clientServerEventBus |
private PathInterpolatorMap |
interpolators |
private Object |
lock |
private org.apache.logging.log4j.Logger |
logger |
private ch.sahits.game.openpatrician.model.IMap |
map |
private IPathConverter |
pathConverter |
private long |
pausedTimeStamp |
private PointService |
pointService |
private com.google.common.eventbus.AsyncEventBus |
timerEventBus |
| Constructor and Description |
|---|
ShipPositionUpdateTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(long now) |
void |
handleGameSpeedChange(ClockTickIntervalChange intervallChange) |
void |
loadedGame(GameStateChange change) |
void |
pause(PauseGame evt) |
protected void |
register() |
void |
resume(ResumeGame evt) |
void |
unregister() |
private final org.apache.logging.log4j.Logger logger
@Autowired private PathInterpolatorMap interpolators
@Autowired @Qualifier(value="serverClientEventBus") private com.google.common.eventbus.AsyncEventBus clientServerEventBus
@Autowired @Qualifier(value="timerEventBus") private com.google.common.eventbus.AsyncEventBus timerEventBus
@Autowired private ch.sahits.game.openpatrician.model.IMap map
@Autowired private IPathConverter pathConverter
@Autowired private PointService pointService
private long pausedTimeStamp
private final Object lock
@PostConstruct protected void register()
register in class ch.sahits.game.openpatrician.model.event.PausableSchedulableTask@PreDestroy public void unregister()
unregister in class ch.sahits.game.openpatrician.model.event.PausableSchedulableTaskpublic void handle(long now)
handle in class ch.sahits.game.openpatrician.model.event.SchedulableTaskpublic void handleGameSpeedChange(ClockTickIntervalChange intervallChange)
public void pause(PauseGame evt)
pause in class ch.sahits.game.openpatrician.model.event.PausableSchedulableTaskpublic void resume(ResumeGame evt)
resume in class ch.sahits.game.openpatrician.model.event.PausableSchedulableTaskpublic void loadedGame(GameStateChange change)
Copyright © 2011-2016 Sahits GmbH. All Rights Reserved.