Class InvasionPhase
java.lang.Object
games.stendhal.server.maps.quests.piedpiper.TPPQuest
games.stendhal.server.maps.quests.piedpiper.InvasionPhase
- All Implemented Interfaces:
ITPPQuest,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 TypeMethodDescriptionintreturn maximal timeout period for quest phaseintreturn minimal timeout period for quest phasegetPhase()Get the current phase.Rats are dead :-)Rats now living under all buildings.voidphaseToDefaultPhase(List<String> comments) function will reset quest state to default phase (INACTIVE).voidphaseToNextPhase(ITPPQuest nextPhase, List<String> comments) Function will change phase to next phase.voidprepare()function will perform necessary actions at phase startprotected StringRed alert! Rats in the Ados city!Methods inherited from class games.stendhal.server.maps.quests.piedpiper.TPPQuest
changeShouts, shoutMessage, startShouts, stopShouts
-
Field Details
-
rats
-
-
Constructor Details
-
InvasionPhase
Create InvasionPhase.- Parameters:
timings-
-
-
Method Details
-
getMinTimeOut
public int getMinTimeOut()Description copied from interface:ITPPQuestreturn minimal timeout period for quest phase- Specified by:
getMinTimeOutin interfaceITPPQuest- Overrides:
getMinTimeOutin classTPPQuest- Returns:
- minimum timeout
-
getMaxTimeOut
public int getMaxTimeOut()Description copied from interface:ITPPQuestreturn maximal timeout period for quest phase- Specified by:
getMaxTimeOutin interfaceITPPQuest- Overrides:
getMaxTimeOutin classTPPQuest- Returns:
- maximum timeout
-
getSwitchingToDefPhaseMessage
Rats are dead :-)- Specified by:
getSwitchingToDefPhaseMessagein interfaceITPPQuest- Overrides:
getSwitchingToDefPhaseMessagein classTPPQuest- Returns:
- default phase message
-
getSwitchingToNextPhaseMessage
Rats now living under all buildings. Need to call Pied Piper :-)- Specified by:
getSwitchingToNextPhaseMessagein interfaceITPPQuest- Overrides:
getSwitchingToNextPhaseMessagein classTPPQuest- Returns:
- next phase message
-
ratsProblem
Red alert! Rats in the Ados city!- Returns:
- Ados mayor's call for help message
-
prepare
public void prepare()Description copied from interface:ITPPQuestfunction will perform necessary actions at phase start -
phaseToDefaultPhase
Description copied from interface:ITPPQuestfunction will reset quest state to default phase (INACTIVE).- Specified by:
phaseToDefaultPhasein interfaceITPPQuest- Overrides:
phaseToDefaultPhasein classTPPQuest
-
phaseToNextPhase
Description copied from interface:ITPPQuestFunction will change phase to next phase.- Specified by:
phaseToNextPhasein interfaceITPPQuest- Overrides:
phaseToNextPhasein classTPPQuest
-
getPhase
Description copied from interface:ITPPQuestGet the current phase.
-