Class AthorFerry

java.lang.Object
games.stendhal.server.maps.athor.ship.AthorFerry
All Implemented Interfaces:
TurnListener

public final class AthorFerry extends Object implements TurnListener
This class simulates a ferry going back and forth between the mainland and the island. Note that, even though this class lies in a maps package, this is not a zone configurator. NPCs that have to do with the ferry:
  • Eliza - brings players from the mainland docks to the ferry.
  • Jessica - brings players from the island docks to the ferry.
  • Jackie - brings players from the ferry to the docks. Captain - the ship captain.
  • Laura - the ship galley maid.
  • Ramon - offers blackjack on the ship.
  • Author:
    daniel
    See Also:
    CaptainNPC
    • Field Details

      • PRICE

        public static final int PRICE
        How much it costs to board the ferry.
        See Also:
        Constant Field Values
    • Method Details

      • get

        public static AthorFerry get()
        Returns:
        The Singleton instance.
      • getState

        public AthorFerry.Status getState()
      • onTurnReached

        public void onTurnReached(int currentTurn)
        Is called when the ferry has either arrived at or departed from a harbor.
        Specified by:
        onTurnReached in interface TurnListener
        Parameters:
        currentTurn - the turn when this listener is called
      • addListener

        public void addListener(AthorFerry.IFerryListener npc)