public class SeamapImageView extends BaseMainGameImageView
impl_traversalEngineProperty, needsLayoutPropertyaccessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, cacheHintProperty, cacheProperty, clipProperty, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, focusedProperty, focusTraversableProperty, hoverProperty, idProperty, impl_showMnemonicsProperty, impl_treeVisibleProperty, inputMethodRequestsProperty, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParentTransformProperty, localToSceneTransformProperty, managedProperty, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, pickOnBoundsProperty, pressedProperty, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, styleProperty, translateXProperty, translateYProperty, translateZProperty, visibleProperty| Modifier and Type | Field and Description |
|---|---|
private ch.sahits.game.openpatrician.engine.sea.AStarGraphProvider |
aStarGraphService |
protected com.google.common.eventbus.AsyncEventBus |
clientEventBus |
private com.google.common.eventbus.AsyncEventBus |
clientServerEventBus |
private javafx.scene.shape.Rectangle |
clip |
private ch.sahits.game.openpatrician.model.Date |
date |
private javafx.geometry.Point2D |
focus |
private IDataImageLoader |
imageLoader |
private javafx.scene.image.ImageView |
imgView |
private ch.sahits.game.openpatrician.clientserverinterface.model.PathInterpolatorMap |
interpolators |
private ch.sahits.game.openpatrician.engine.sea.LocationTracker |
locationTracker |
private org.apache.logging.log4j.Logger |
logger |
private ch.sahits.game.openpatrician.model.map.IMap |
map |
private javafx.scene.image.Image |
mapImage |
private static int |
PATH_FADING_DELAY_MS |
private ch.sahits.game.openpatrician.engine.sea.IPathConverter |
pathConverter |
private double |
scale |
private javafx.scene.shape.Rectangle |
scrollLeft |
private javafx.scene.shape.Rectangle |
scrollRight |
private ch.sahits.game.openpatrician.engine.sea.SeafaringService |
seafaringService |
private javafx.scene.layout.Pane |
shipCanvas |
private ch.sahits.game.openpatrician.clientserverinterface.service.ShipService |
shipService |
private javafx.scene.shape.Rectangle |
slaveClip |
private javafx.animation.Timeline |
slideLeftAnimation |
private javafx.animation.Timeline |
slideRightAnimation |
private com.google.common.eventbus.EventBus |
syncServerClientEventBus |
private ch.sahits.game.openpatrician.model.event.TimedUpdatableTaskList |
taskList |
private ch.sahits.game.openpatrician.util.javafx.IJavaFXApplicationThreadExecution |
threadExecution |
private ScheduledExecutorService |
uiTimer |
private ch.sahits.game.openpatrician.model.sea.ITravellingVessels |
vessels |
private ClientViewState |
viewState |
private int |
visibleRange |
private com.google.common.collect.Multimap<ch.sahits.game.openpatrician.model.ship.INavigableVessel,ch.sahits.game.openpatrician.model.ship.INavigableVessel> |
visibleShips
Mapping the visible vessels of other players for all players ships.
|
withPolygonShading| Constructor and Description |
|---|
SeamapImageView(javafx.scene.image.Image mapImage,
double width,
double height,
javafx.geometry.Point2D focus,
double scale) |
| Modifier and Type | Method and Description |
|---|---|
private void |
addSingleVisibleVessel(ch.sahits.game.openpatrician.model.ship.INavigableVessel ship,
ch.sahits.game.openpatrician.model.IHumanPlayer player,
ch.sahits.game.openpatrician.model.ship.INavigableVessel visibleVessel)
Add the ship to the visible set and map if it is not in a city and not owned by the player.
|
(package private) void |
addVisibleVessel(ch.sahits.game.openpatrician.model.ship.INavigableVessel ship,
ch.sahits.game.openpatrician.model.IHumanPlayer player)
Check which vessels are visible and add them.
|
private boolean |
areVisibleToEachOther(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel1,
ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel2)
Check if the two vessels are visible to each other.
|
private void |
checkVisiblityAndUpdate(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
Set<ch.sahits.game.openpatrician.model.ship.INavigableVessel> noLongerVisibleVessels,
ch.sahits.game.openpatrician.model.ship.INavigableVessel visibleVessel)
Check if the two vessels are visible.
|
private void |
clearLines() |
private void |
drawExistingPath(ch.sahits.game.openpatrician.model.sea.TravellingVessel vessel)
Draw the path and ship icon for the vessel onto the map.
|
private void |
drawPath(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
List<javafx.geometry.Point2D> path)
Calculate a new path for the
vessel and draw it on the map. |
private void |
drawPathOnMap(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
List<javafx.geometry.Point2D> path,
javafx.scene.shape.Path p)
Draw the path onto the map considering the proper scaling.
|
private void |
drawShipOnMap(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel)
Draw a vessel on the map with default orientation (faceing to the west)
|
private void |
drawShipPresenceInCity(ch.sahits.game.openpatrician.model.city.ICity city) |
private void |
drawShipsInCities(javafx.scene.image.Image mapImage,
double scale,
double x) |
private ch.sahits.game.openpatrician.model.city.ICity |
findCity(double unscaledX,
double unscaledY) |
private javafx.scene.image.ImageView |
findImageView(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel) |
private void |
focusOnPoint(javafx.geometry.Point2D focus) |
private javafx.scene.image.Image |
getShipIcon(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel) |
void |
handelLoadedNewGame(ch.sahits.game.event.GameStateChange event)
Initialize the visible ships.
|
void |
handeShipReachesPort(ch.sahits.game.event.data.ShipEntersPortEvent event) |
private void |
handleMouseClick(javafx.scene.input.MouseEvent evt) |
void |
handleShipLeavesCity(ch.sahits.game.event.data.ShipLeavingPort event) |
void |
handleShipNearsPort(ch.sahits.game.event.data.ShipNearingPortEvent event) |
void |
handleShipPositionUpdate(ch.sahits.game.event.data.ShipPositionUpdateEvent event) |
void |
handleShipReachesDestination(ch.sahits.game.event.data.ShipArrivesAtDestinationEvent event) |
private void |
handleVisibilityShips(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel) |
private void |
init() |
private void |
initializeVisibleShips() |
private boolean |
isInCity(javafx.geometry.Point2D location)
Check if the location matches any city.
|
private void |
redrawPath(double oldScale) |
private void |
removeNoLongerVisibleVessels(Set<ch.sahits.game.openpatrician.model.ship.INavigableVessel> noLongerVisibleVessels) |
void |
removeShipIcons()
Remove all ship icons from the sea map.
|
private Set<ch.sahits.game.openpatrician.model.ship.INavigableVessel> |
removeVisibleVessel(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel) |
private void |
rescale(javafx.scene.shape.CubicCurveTo pathElement,
double scale) |
private void |
rescale(javafx.scene.shape.MoveTo pathElement,
double scale) |
private void |
rescale(javafx.scene.shape.PathElement pathElement,
double scale) |
private void |
resetClipXPosition(double x) |
void |
resetImage(javafx.scene.image.Image mapImage,
double width,
double height,
double scale)
Reset the image to accomodate the dimensions.
|
private boolean |
scrolledAllToTheLeft() |
private boolean |
scrolledAllToTheRight() |
private void |
switchToCity(ch.sahits.game.openpatrician.model.city.ICity city) |
private void |
travelToDestination(double x,
double y,
ch.sahits.game.openpatrician.model.city.ICity destinationCity,
ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel) |
(package private) void |
unregister() |
private void |
updateShipIcon(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
javafx.scene.image.ImageView view) |
private void |
updateShipPosition(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
javafx.scene.image.Image shipIcon,
javafx.scene.image.ImageView view) |
resetPolygonsautoSizeChildrenProperty, getChildren, impl_computeLayoutBounds, isAutoSizeChildren, layoutChildren, minHeight, minWidth, prefHeight, prefWidth, setAutoSizeChildrencomputeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, getBaselineOffset, getChildrenUnmodifiable, getImpl_traversalEngine, getManagedChildren, getStylesheets, impl_computeContains, impl_computeGeomBounds, impl_createPeer, impl_getAllParentStylesheets, impl_pickNodeLocal, impl_processCSS, impl_processMXNode, impl_traversalEngineProperty, impl_updatePeer, isNeedsLayout, layout, lookup, needsLayoutProperty, queryAccessibleAttribute, requestLayout, requestParentLayout, setImpl_traversalEngine, setNeedsLayout, updateBoundsaccessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, containsBounds, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, executeAccessibleAction, fireEvent, focusedProperty, focusTraversableProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClassCssMetaData, getClip, getContentBias, getCssMetaData, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, hasProperties, hoverProperty, idProperty, impl_clearDirty, impl_computeIntersects, impl_cssGetCursorInitialValue, impl_cssGetFocusTraversableInitialValue, impl_findStyles, impl_geomChanged, impl_getLeafTransform, impl_getMatchingStyles, impl_getPeer, impl_getPivotX, impl_getPivotY, impl_getPivotZ, impl_getStyleMap, impl_hasTransforms, impl_intersects, impl_intersectsBounds, impl_isDirty, impl_isDirtyEmpty, impl_isShowMnemonics, impl_isTreeVisible, impl_layoutBoundsChanged, impl_markDirty, impl_notifyLayoutBoundsChanged, impl_pickNode, impl_processCSS, impl_reapplyCSS, impl_setShowMnemonics, impl_setStyleMap, impl_showMnemonicsProperty, impl_syncPeer, impl_transformsChanged, impl_traverse, impl_treeVisibleProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isResizable, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, maxHeight, maxWidth, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resize, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, visiblePropertyprivate int visibleRange
private static final int PATH_FADING_DELAY_MS
private final org.apache.logging.log4j.Logger logger
private final javafx.scene.image.ImageView imgView
private javafx.scene.layout.Pane shipCanvas
private final javafx.scene.shape.Rectangle clip
private final javafx.scene.shape.Rectangle scrollLeft
private final javafx.scene.shape.Rectangle scrollRight
private final javafx.animation.Timeline slideLeftAnimation
private final javafx.animation.Timeline slideRightAnimation
private double scale
@Autowired private ch.sahits.game.openpatrician.model.map.IMap map
@Autowired private ch.sahits.game.openpatrician.engine.sea.SeafaringService seafaringService
@Autowired private ClientViewState viewState
@Autowired private ch.sahits.game.openpatrician.engine.sea.AStarGraphProvider aStarGraphService
@Autowired private ch.sahits.game.openpatrician.engine.sea.IPathConverter pathConverter
@Autowired private ch.sahits.game.openpatrician.model.sea.ITravellingVessels vessels
@Autowired private ch.sahits.game.openpatrician.clientserverinterface.model.PathInterpolatorMap interpolators
@Autowired @Qualifier(value="mainScreenXMLImageLoader") private IDataImageLoader imageLoader
@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="clientEventBus") protected com.google.common.eventbus.AsyncEventBus clientEventBus
@Autowired private ch.sahits.game.openpatrician.model.event.TimedUpdatableTaskList taskList
@Autowired private ch.sahits.game.openpatrician.model.Date date
@Autowired private ch.sahits.game.openpatrician.clientserverinterface.service.ShipService shipService
@Autowired private ch.sahits.game.openpatrician.engine.sea.LocationTracker locationTracker
@Autowired private ch.sahits.game.openpatrician.util.javafx.IJavaFXApplicationThreadExecution threadExecution
@Autowired @Qualifier(value="uiTimer") private ScheduledExecutorService uiTimer
private javafx.scene.image.Image mapImage
private final javafx.scene.shape.Rectangle slaveClip
private javafx.geometry.Point2D focus
private com.google.common.collect.Multimap<ch.sahits.game.openpatrician.model.ship.INavigableVessel,ch.sahits.game.openpatrician.model.ship.INavigableVessel> visibleShips
public SeamapImageView(javafx.scene.image.Image mapImage,
double width,
double height,
javafx.geometry.Point2D focus,
double scale)
@PostConstruct private void init()
private void initializeVisibleShips()
void addVisibleVessel(ch.sahits.game.openpatrician.model.ship.INavigableVessel ship,
ch.sahits.game.openpatrician.model.IHumanPlayer player)
ship - for which other visible vessels should be checkedplayer - human player owning the interface.private void addSingleVisibleVessel(ch.sahits.game.openpatrician.model.ship.INavigableVessel ship,
ch.sahits.game.openpatrician.model.IHumanPlayer player,
ch.sahits.game.openpatrician.model.ship.INavigableVessel visibleVessel)
ship - owned by the human playerplayer - human player owning the interface.visibleVessel - ship that is visible to ship@PreDestroy void unregister()
private boolean isInCity(javafx.geometry.Point2D location)
location - private void handleMouseClick(javafx.scene.input.MouseEvent evt)
private void travelToDestination(double x,
double y,
ch.sahits.game.openpatrician.model.city.ICity destinationCity,
ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel)
private void drawPath(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
List<javafx.geometry.Point2D> path)
vessel and draw it on the map.vessel - that travels along the pathpath - series of points defining the path.private void drawPathOnMap(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
List<javafx.geometry.Point2D> path,
javafx.scene.shape.Path p)
vessel - for which the path is drawnpath - series of points that define the corners of the path.p - path that is drawn.private void drawShipOnMap(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel)
vessel - private void updateShipIcon(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
javafx.scene.image.ImageView view)
private void drawExistingPath(ch.sahits.game.openpatrician.model.sea.TravellingVessel vessel)
vessel - for which the drawing should be done.private void updateShipPosition(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
javafx.scene.image.Image shipIcon,
javafx.scene.image.ImageView view)
private javafx.scene.image.ImageView findImageView(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel)
private javafx.scene.image.Image getShipIcon(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel)
private void clearLines()
private void switchToCity(ch.sahits.game.openpatrician.model.city.ICity city)
private ch.sahits.game.openpatrician.model.city.ICity findCity(double unscaledX,
double unscaledY)
private boolean scrolledAllToTheLeft()
private boolean scrolledAllToTheRight()
private void focusOnPoint(javafx.geometry.Point2D focus)
private void resetClipXPosition(double x)
public void resetImage(javafx.scene.image.Image mapImage,
double width,
double height,
double scale)
mapImage - width - height - private void drawShipsInCities(javafx.scene.image.Image mapImage,
double scale,
double x)
private void drawShipPresenceInCity(ch.sahits.game.openpatrician.model.city.ICity city)
public void handleShipLeavesCity(ch.sahits.game.event.data.ShipLeavingPort event)
public void handelLoadedNewGame(ch.sahits.game.event.GameStateChange event)
event - private void redrawPath(double oldScale)
private void rescale(javafx.scene.shape.MoveTo pathElement,
double scale)
private void rescale(javafx.scene.shape.CubicCurveTo pathElement,
double scale)
private void rescale(javafx.scene.shape.PathElement pathElement,
double scale)
public void handleShipPositionUpdate(ch.sahits.game.event.data.ShipPositionUpdateEvent event)
private void handleVisibilityShips(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel)
private void removeNoLongerVisibleVessels(Set<ch.sahits.game.openpatrician.model.ship.INavigableVessel> noLongerVisibleVessels)
private void checkVisiblityAndUpdate(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
Set<ch.sahits.game.openpatrician.model.ship.INavigableVessel> noLongerVisibleVessels,
ch.sahits.game.openpatrician.model.ship.INavigableVessel visibleVessel)
visibleVessel to the
Set noLongerVisibleVessels and remove the combination from the visible ships multimap.vessel - of the human player owning this viewnoLongerVisibleVessels - set of vessels that are no longer visiblevisibleVessel - of another player.private boolean areVisibleToEachOther(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel1,
ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel2)
vessel1 - vessel2 - public void handleShipReachesDestination(ch.sahits.game.event.data.ShipArrivesAtDestinationEvent event)
public void handleShipNearsPort(ch.sahits.game.event.data.ShipNearingPortEvent event)
public void handeShipReachesPort(ch.sahits.game.event.data.ShipEntersPortEvent event)
public void removeShipIcons()
private Set<ch.sahits.game.openpatrician.model.ship.INavigableVessel> removeVisibleVessel(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel)
Copyright © 2011-2016 Sahits GmbH. All Rights Reserved.