Class TPPQuestHelperFunctions
java.lang.Object
games.stendhal.server.maps.quests.piedpiper.TPPQuestHelperFunctions
- All Implemented Interfaces:
ITPPQuestConstants
-
Nested Class Summary
Nested classes/interfaces inherited from interface games.stendhal.server.maps.quests.piedpiper.ITPPQuestConstants
ITPPQuestConstants.TPP_Phase -
Field Summary
FieldsFields inherited from interface games.stendhal.server.maps.quests.piedpiper.ITPPQuestConstants
AWAITING, AWAITING_TIME_MAX, AWAITING_TIME_MIN, CHILDRENS, CHILDRENS_TIME_MAX, CHILDRENS_TIME_MIN, FINAL, FINAL_TIME_MAX, FINAL_TIME_MIN, INACTIVE, INACTIVE_TIME_MAX, INACTIVE_TIME_MIN, INVASION, INVASION_TIME_MAX, INVASION_TIME_MIN, OUTGOING, OUTGOING_TIME_MAX, OUTGOING_TIME_MIN, QUEST_SLOT, RAT_REWARDS, RAT_TYPES, RAT_ZONES, SHOUT_TIME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcalculateReward(Player player)function for calculating reward's moneys for playerstatic SpeakerNPCstatic Creaturereturn random rat from allowed liststatic LinkedList<Creature>getRats()static intGet the amount of rats.voidsetRats(LinkedList<Creature> rats)static voidsetupPiper(SpeakerNPC piedpiper)
-
Field Details
-
MAIN_NPC_NAME
- See Also:
- Constant Field Values
-
-
Constructor Details
-
TPPQuestHelperFunctions
public TPPQuestHelperFunctions()
-
-
Method Details
-
getMainNPC
-
calculateReward
function for calculating reward's moneys for player- Parameters:
player- - player which must be rewarded- Returns:
- gold amount for hunting rats.
-
setRats
-
getRats
-
getRatsCount
public static int getRatsCount()Get the amount of rats.- Returns:
- rat count
-
setupPiper
-
getRandomRat
return random rat from allowed list- Returns:
- a random rat creature
-