@Component public class ClientViewState extends Object
| Modifier and Type | Field and Description |
|---|---|
private com.google.common.eventbus.AsyncEventBus |
clientServerEventBus |
private com.google.common.base.Optional<ch.sahits.game.openpatrician.client.ICityPlayerProxyJFX> |
currentCityProxy
proxy for the city is only present when the state is city
|
private ch.sahits.game.openpatrician.model.IPlayer |
player
The player behind the client
|
private EViewState |
state
Main state
|
| Constructor and Description |
|---|
ClientViewState() |
| Modifier and Type | Method and Description |
|---|---|
private void |
initEventBus() |
void |
initializeState(ch.sahits.game.event.data.NewGameClient newGameDTO)
Initialize the player that goes with this client.
|
private EViewState state
private com.google.common.base.Optional<ch.sahits.game.openpatrician.client.ICityPlayerProxyJFX> currentCityProxy
private ch.sahits.game.openpatrician.model.IPlayer player
@Autowired @Qualifier(value="serverClientEventBus") private com.google.common.eventbus.AsyncEventBus clientServerEventBus
@PostConstruct private void initEventBus()
public void initializeState(ch.sahits.game.event.data.NewGameClient newGameDTO)
newGameDTO - Copyright © 2011-2015 Sahits GmbH. All Rights Reserved.