public class PlayerEngine extends AbstractEngine
| Modifier and Type | Field and Description |
|---|---|
private com.google.common.eventbus.AsyncEventBus |
clientServerEventBus |
private double |
dailySailorCost |
private HumanPlayerEngine |
humanPlayerEngine |
private org.apache.logging.log4j.Logger |
logger |
private ch.sahits.game.openpatrician.model.map.IMap |
map |
private ch.sahits.game.openpatrician.model.PlayerList |
players |
private ch.sahits.game.openpatrician.util.spring.DependentPropertyInitializer |
propertyInitializer |
private ReputationCalculator |
repCalc |
private com.google.common.eventbus.AsyncEventBus |
timerEventBus |
private ch.sahits.game.openpatrician.model.sea.TravellingVessels |
vessels |
| Constructor and Description |
|---|
PlayerEngine() |
| Modifier and Type | Method and Description |
|---|---|
private void |
dailyUpdateBalanceSheet() |
List<AbstractEngine> |
getChildren()
Any engine may hold various child engines.
|
void |
handleDailyUpdate(ClockTickDayChange event) |
void |
handleShipReachesDestination(ShipArrivesAtDestinationEvent event) |
void |
handleWeeklyUpdate(ClockTickDayChange event)
Handling the daily update events.
|
private void |
init() |
private void |
unregister() |
(package private) void |
updateCompanyValue() |
private final org.apache.logging.log4j.Logger logger
@DependentValue(value="sailor.cost.per.day") private double dailySailorCost
@Autowired private ch.sahits.game.openpatrician.model.PlayerList players
@Autowired private HumanPlayerEngine humanPlayerEngine
@Autowired private ch.sahits.game.openpatrician.model.map.IMap map
@Autowired private ReputationCalculator repCalc
@Autowired private ch.sahits.game.openpatrician.model.sea.TravellingVessels vessels
@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.util.spring.DependentPropertyInitializer propertyInitializer
@PostConstruct private void init()
@PreDestroy private void unregister()
public void handleDailyUpdate(ClockTickDayChange event)
public void handleWeeklyUpdate(ClockTickDayChange event)
event - void updateCompanyValue()
public List<AbstractEngine> getChildren()
AbstractEnginegetChildren in class AbstractEngineprivate void dailyUpdateBalanceSheet()
public void handleShipReachesDestination(ShipArrivesAtDestinationEvent event)
Copyright © 2011-2017 Sahits GmbH. All Rights Reserved.