Class MediterreanSeaMap

  • All Implemented Interfaces:
    IMediterreanMap

    public class MediterreanSeaMap
    extends java.lang.Object
    implements IMediterreanMap
    Author:
    Andi Hotz, (c) Sahits GmbH, 2016 Created on Nov 06, 2016
    • Constructor Detail

      • MediterreanSeaMap

        public MediterreanSeaMap()
    • Method Detail

      • exploreSpot

        public boolean exploreSpot​(IPlayer player,
                                   javafx.geometry.Point2D coordinates)
        Description copied from interface: IMediterreanMap
        Player explored a spot and may have detected a trading spot. Trading spots can be detected in a certain radius of the explored spot.
        Specified by:
        exploreSpot in interface IMediterreanMap
        Parameters:
        player - that does the exploring
        coordinates - location that is explored
        Returns:
        true if a new trading spot was discovered.
      • getDiscoveredTradingSpots

        public java.util.Map<javafx.geometry.Point2D,​IMediterreanCity> getDiscoveredTradingSpots()
        Description copied from interface: IMediterreanMap
        Retrieve a map of all discovered trading spot locations along with their names.
        Specified by:
        getDiscoveredTradingSpots in interface IMediterreanMap
        Returns:
        map of coordinates and names of trading spots in the mediterrenian.
      • getExploredLocations

        public java.util.List<javafx.geometry.Point2D> getExploredLocations​(IPlayer player)
        Description copied from interface: IMediterreanMap
        Retrieve a list of all discovered location for a player.
        Specified by:
        getExploredLocations in interface IMediterreanMap
        Parameters:
        player - for which the location should be retrieved.
        Returns:
        list of all disovered locations.
      • getTradeAgreements

        public java.util.List<ITradeAgreement> getTradeAgreements​(IPlayer player)
        Description copied from interface: IMediterreanMap
        Retreive the trade agreements for a specific player.
        Specified by:
        getTradeAgreements in interface IMediterreanMap
        Parameters:
        player - for which the agreement should be looked up.
        Returns:
        list of trade agreements.