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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAuto registers the listener to Athorferry.static interfacestatic enum -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic AthorFerryget()getState()voidonTurnReached(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:
-
-
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:
onTurnReachedin interfaceTurnListener- Parameters:
currentTurn- the turn when this listener is called
-
addListener
-