Class TPPQuestHelperFunctions

java.lang.Object
games.stendhal.server.maps.quests.piedpiper.TPPQuestHelperFunctions
All Implemented Interfaces:
ITPPQuestConstants

public class TPPQuestHelperFunctions extends Object implements ITPPQuestConstants
  • Field Details

  • Constructor Details

    • TPPQuestHelperFunctions

      public TPPQuestHelperFunctions()
  • Method Details

    • getMainNPC

      public static SpeakerNPC getMainNPC()
    • calculateReward

      public static int calculateReward(Player player)
      function for calculating reward's moneys for player
      Parameters:
      player - - player which must be rewarded
      Returns:
      gold amount for hunting rats.
    • setRats

      public void setRats(LinkedList<Creature> rats)
    • getRats

      public static LinkedList<Creature> getRats()
    • getRatsCount

      public static int getRatsCount()
      Get the amount of rats.
      Returns:
      rat count
    • setupPiper

      public static void setupPiper(SpeakerNPC piedpiper)
    • getRandomRat

      public static Creature getRandomRat()
      return random rat from allowed list
      Returns:
      a random rat creature