@Component @Lazy @DependentInitialisation(value=ch.sahits.game.openpatrician.util.StartNewGameBean.class) public class MapLocationDetector extends Object
| Modifier and Type | Field and Description |
|---|---|
private ch.sahits.game.openpatrician.model.city.cityhall.impl.AldermanOffice |
aldermanOffice |
private com.google.common.eventbus.AsyncEventBus |
clientServerEventBus |
private MapLocationDetectionModel |
dataModel |
private ch.sahits.game.openpatrician.model.Date |
date |
private int |
locationDistance |
private LocationTracker |
locationTracker |
private ch.sahits.game.openpatrician.model.map.IMap |
map |
private Random |
rnd |
private boolean |
shipsUpdated |
private com.google.common.eventbus.EventBus |
syncServerClientEventBus |
private com.google.common.eventbus.AsyncEventBus |
timerEventBus |
| Constructor and Description |
|---|
MapLocationDetector() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkShipLeaving(ClockTick tick) |
void |
checkShipUpdate(ShipPositionUpdateEvent event) |
(package private) void |
handleShipLocationUpdate() |
private void |
init() |
(package private) void |
removeDefeatedShips(ch.sahits.game.openpatrician.model.ship.IConvoy ship,
int survivingShips) |
private void |
unregister() |
@Value(value="${seamap.visibility.distance}")
private int locationDistance
@Autowired private MapLocationDetectionModel dataModel
@Autowired @Qualifier(value="serverClientEventBus") private com.google.common.eventbus.AsyncEventBus clientServerEventBus
@Autowired @Qualifier(value="syncServerClientEventBus") private com.google.common.eventbus.EventBus syncServerClientEventBus
@Autowired @Qualifier(value="timerEventBus") private com.google.common.eventbus.AsyncEventBus timerEventBus
@Autowired private ch.sahits.game.openpatrician.model.Date date
@Autowired private ch.sahits.game.openpatrician.model.city.cityhall.impl.AldermanOffice aldermanOffice
@Autowired private ch.sahits.game.openpatrician.model.map.IMap map
@Autowired private Random rnd
@Autowired private LocationTracker locationTracker
private boolean shipsUpdated
@PostConstruct private void init()
@PreDestroy private void unregister()
public void checkShipUpdate(ShipPositionUpdateEvent event)
void handleShipLocationUpdate()
public void checkShipLeaving(ClockTick tick)
void removeDefeatedShips(ch.sahits.game.openpatrician.model.ship.IConvoy ship,
int survivingShips)
Copyright © 2011-2017 Sahits GmbH. All Rights Reserved.