Class TeleportAction
java.lang.Object
games.stendhal.server.entity.npc.action.TeleportAction
- All Implemented Interfaces:
ChatAction
,PostTransitionAction
@Dev(category=LOCATION,
label="Teleport")
public class TeleportAction
extends Object
implements ChatAction
Teleports the player to the specified location.
-
Constructor Summary
ConstructorDescriptionTeleportAction(String zonename, int x, int y, Direction direction)
Creates a new TeleportAction. -
Method Summary
-
Constructor Details
-
TeleportAction
Creates a new TeleportAction.- Parameters:
zonename
- name of destination zonex
- x-positiony
- y-positiondirection
- facing into this direction
-
-
Method Details
-
fire
Description copied from interface:PostTransitionAction
does some action after a transition.- Specified by:
fire
in interfaceChatAction
- Specified by:
fire
in interfacePostTransitionAction
- Parameters:
player
- player who caused the transitionsentence
- text he/she saidraiser
- the NPC doing the transition
-
toString
-
hashCode
public int hashCode() -
equals
-