Class AthorFerry
java.lang.Object
games.stendhal.server.maps.athor.ship.AthorFerry
- All Implemented Interfaces:
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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Auto registers the listener to Athorferry.static interface
static class
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
static AthorFerry
get()
getState()
void
onTurnReached(int currentTurn)
Is called when the ferry has either arrived at or departed from a harbor.
-
Field Details
-
PRICE
public static final int PRICEHow much it costs to board the ferry.- See Also:
- Constant Field Values
-
-
Method Details
-
get
- Returns:
- The Singleton instance.
-
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 interfaceTurnListener
- Parameters:
currentTurn
- the turn when this listener is called
-
addListener
-