ch.sahits.game.openpatrician.utilities.service.IPostLoadOperation@Component
@Lazy
@DependentInitialisation(ch.sahits.game.openpatrician.model.initialisation.StartNewGameBean.class)
public class ClientViewState
extends java.lang.Object
implements ch.sahits.game.openpatrician.utilities.service.IPostLoadOperation
| Modifier and Type | Field | Description |
|---|---|---|
protected com.google.common.eventbus.AsyncEventBus |
clientEventBus |
| Constructor | Description |
|---|---|
ClientViewState() |
| Modifier and Type | Method | Description |
|---|---|---|
EViewState |
getState() |
|
void |
handleSwitchToCity(ch.sahits.game.openpatrician.event.data.SwitchCity event) |
|
void |
initializeState(ch.sahits.game.openpatrician.event.data.NewGameClient newGameDTO) |
Initialize the player that goes with this client.
|
void |
postLoad() |
|
void |
setState(EViewState state) |
|
javafx.beans.property.ObjectProperty<EViewState> |
stateProperty() |
@Autowired
@Qualifier("clientEventBus")
protected com.google.common.eventbus.AsyncEventBus clientEventBus
public void initializeState(ch.sahits.game.openpatrician.event.data.NewGameClient newGameDTO)
newGameDTO - parameter object for the new gamepublic void handleSwitchToCity(ch.sahits.game.openpatrician.event.data.SwitchCity event)
public EViewState getState()
public javafx.beans.property.ObjectProperty<EViewState> stateProperty()
public void setState(EViewState state)
public void postLoad()
postLoad in interface ch.sahits.game.openpatrician.utilities.service.IPostLoadOperationCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.