Interface Locatable

    • Method Detail

      • getLocation

        Location getLocation()
        Gets the location of this Locatable.
        Returns:
        The location of this Locatable.
      • setLocation

        boolean setLocation​(Location newLocation)
        Sets the location for this Locatable.
        Parameters:
        newLocation - The new Location for the Locatable.
        Returns:
        True if the location change succeeds.
      • isInEurope

        boolean isInEurope()
        Is this locatable in Europe.
        Returns:
        True if the Locatable is in Europe.
      • getTile

        Tile getTile()
        Get the Tile where this Locatable is located, or null if it is in Europe.
        Returns:
        The Tile where this Locatable is located, if any.
      • getSpaceTaken

        int getSpaceTaken()
        Gets the number of cargo slots consumed when this Locatable if put onto a carrier.
        Returns:
        The number of cargo slots required.