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
ConstructorsConstructorDescriptionTeleportAction(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:PostTransitionActiondoes some action after a transition.- Specified by:
firein interfaceChatAction- Specified by:
firein interfacePostTransitionAction- Parameters:
player- player who caused the transitionsentence- text he/she saidraiser- the NPC doing the transition
-
toString
-
hashCode
public int hashCode() -
equals
-