ch.sahits.game.openpatrician.clientserverinterface.client.ICityPlayerProxyJFXpublic class CityPlayerProxyJFX
extends java.lang.Object
implements ch.sahits.game.openpatrician.clientserverinterface.client.ICityPlayerProxyJFX
| Constructor | Description |
|---|---|
CityPlayerProxyJFX(ch.sahits.game.openpatrician.model.city.ICity city,
ch.sahits.game.openpatrician.model.IHumanPlayer player,
ch.sahits.game.openpatrician.model.ship.INavigableVessel activeShip) |
/**
Constructor initializing the city and the player with one ship in port.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
activateShip(ch.sahits.game.openpatrician.model.ship.INavigableVessel ship) |
Activate a ship.
|
javafx.beans.property.ObjectProperty<ch.sahits.game.openpatrician.model.ship.INavigableVessel> |
activeShipProperty() |
|
void |
arrive(ch.sahits.game.openpatrician.model.ship.INavigableVessel ship) |
A ship arrives in the city
|
ch.sahits.game.openpatrician.model.ship.INavigableVessel |
getActiveShip() |
|
javafx.collections.ObservableList<ch.sahits.game.openpatrician.model.ship.INavigableVessel> |
getPlayersNavalVessels() |
|
javafx.collections.ObservableList<ch.sahits.game.openpatrician.model.ship.IShip> |
getPlayersShips() |
|
void |
handleShipBecomesUnavailable(ch.sahits.game.openpatrician.event.data.ShipBecomesUnavailableEvent event) |
|
void |
handleShipEntersPort(ch.sahits.game.openpatrician.event.data.ShipEntersPortEvent event) |
|
void |
handleShipLeavesPort(ch.sahits.game.openpatrician.event.data.ShipLeavingPort event) |
|
void |
leave(ch.sahits.game.openpatrician.model.ship.INavigableVessel ship) |
Ship leave the city
|
void |
postLoad() |
Execute after savegame was loaded triggered from the ClientViewState.
|
public CityPlayerProxyJFX(ch.sahits.game.openpatrician.model.city.ICity city,
ch.sahits.game.openpatrician.model.IHumanPlayer player,
ch.sahits.game.openpatrician.model.ship.INavigableVessel activeShip)
city - behind the proxyplayer - human player behind the proxyactiveShip - active ship behind the proxy.public void activateShip(ch.sahits.game.openpatrician.model.ship.INavigableVessel ship)
IllegalArgumentException will be thrownactivateShip in interface ch.sahits.game.openpatrician.clientserverinterface.client.ICityPlayerProxyJFXship - that is to be activated.java.lang.IllegalArgumentException - if the ship cannot be activated due to its non existencepublic javafx.collections.ObservableList<ch.sahits.game.openpatrician.model.ship.INavigableVessel> getPlayersNavalVessels()
getPlayersNavalVessels in interface ch.sahits.game.openpatrician.clientserverinterface.client.ICityPlayerProxyJFXpublic void arrive(ch.sahits.game.openpatrician.model.ship.INavigableVessel ship)
arrive in interface ch.sahits.game.openpatrician.clientserverinterface.client.ICityPlayerProxyJFXship - that arrivespublic void leave(ch.sahits.game.openpatrician.model.ship.INavigableVessel ship)
leave in interface ch.sahits.game.openpatrician.clientserverinterface.client.ICityPlayerProxyJFXship - that leavespublic javafx.collections.ObservableList<ch.sahits.game.openpatrician.model.ship.IShip> getPlayersShips()
getPlayersShips in interface ch.sahits.game.openpatrician.clientserverinterface.client.ICityPlayerProxyJFXpublic void handleShipLeavesPort(ch.sahits.game.openpatrician.event.data.ShipLeavingPort event)
public void handleShipEntersPort(ch.sahits.game.openpatrician.event.data.ShipEntersPortEvent event)
public void handleShipBecomesUnavailable(ch.sahits.game.openpatrician.event.data.ShipBecomesUnavailableEvent event)
public void postLoad()
public ch.sahits.game.openpatrician.model.ship.INavigableVessel getActiveShip()
getActiveShip in interface ch.sahits.game.openpatrician.clientserverinterface.client.ICityPlayerProxyJFXpublic javafx.beans.property.ObjectProperty<ch.sahits.game.openpatrician.model.ship.INavigableVessel> activeShipProperty()
activeShipProperty in interface ch.sahits.game.openpatrician.clientserverinterface.client.ICityPlayerProxyJFXCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.