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
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
calculateReward(Player player)
function for calculating reward's moneys for playerstatic SpeakerNPC
static Creature
return random rat from allowed liststatic LinkedList<Creature>
getRats()
static int
Get the amount of rats.void
setRats(LinkedList<Creature> rats)
static void
setupPiper(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
-