Class ItemDroppingTeleporterBehaviour
java.lang.Object
games.stendhal.server.entity.npc.behaviour.impl.TeleporterBehaviour
games.stendhal.server.entity.npc.behaviour.impl.ItemDroppingTeleporterBehaviour
- All Implemented Interfaces:
TurnListener
teleports the SpeakerNPC to a random location on the outside world and causes
it to walk a random path while also randomly dropping items
- Author:
- kymara
-
Constructor Summary
ConstructorDescriptionItemDroppingTeleporterBehaviour(SpeakerNPC speakerNPC, List<String> setZones, String zoneStartsWithLimiter, String repeatedText, boolean useHighProbabilityZones, String itemName)
Creates a new ItemDroppingTeleporterBehaviour.ItemDroppingTeleporterBehaviour(SpeakerNPC speakerNPC, List<String> setZones, String zoneStartsWithLimiter, String repeatedText, String itemName)
Creates a new ItemDroppingTeleporterBehaviour. -
Method Summary
Methods inherited from class games.stendhal.server.entity.npc.behaviour.impl.TeleporterBehaviour
onTurnReached, setExitsConversation, setTarryDuration, setTeleportWarning
-
Constructor Details
-
ItemDroppingTeleporterBehaviour
public ItemDroppingTeleporterBehaviour(SpeakerNPC speakerNPC, List<String> setZones, String zoneStartsWithLimiter, String repeatedText, String itemName)Creates a new ItemDroppingTeleporterBehaviour.- Parameters:
speakerNPC
- SpeakerNPCrepeatedText
- text to repeatitemName
- name of item to drop
-
ItemDroppingTeleporterBehaviour
public ItemDroppingTeleporterBehaviour(SpeakerNPC speakerNPC, List<String> setZones, String zoneStartsWithLimiter, String repeatedText, boolean useHighProbabilityZones, String itemName)Creates a new ItemDroppingTeleporterBehaviour.- Parameters:
speakerNPC
- SpeakerNPCrepeatedText
- text to repeatuseHighProbabilityZones
- true to make teleportation to a hand selected list of zones more likelyitemName
- name of item to drop
-
-
Method Details
-
doRegularBehaviour
protected void doRegularBehaviour()- Overrides:
doRegularBehaviour
in classTeleporterBehaviour
-