Class AwaitingPhase
java.lang.Object
games.stendhal.server.maps.quests.piedpiper.TPPQuest
games.stendhal.server.maps.quests.piedpiper.AwaitingPhase
- All Implemented Interfaces:
ITPPQuest,ITPPQuestConstants
Implementation of Pied Piper's initial actions (coming, chatting, going to work place)
- Author:
- yoriy
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintreturn maximal timeout period for quest phaseintreturn minimal timeout period for quest phasegetPhase()Get the current phase.Pied Piper will now start to collect rats :-)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()prepare actionsMethods inherited from class games.stendhal.server.maps.quests.piedpiper.TPPQuest
changeShouts, getSwitchingToDefPhaseMessage, shoutMessage, startShouts, stopShouts
-
Constructor Details
-
AwaitingPhase
constructor- Parameters:
timings- - a pair of time parameters for phase timeouts
-
-
Method Details
-
prepare
public void prepare()prepare actions -
getMinTimeOut
public int getMinTimeOut()Description copied from interface:ITPPQuestreturn minimal timeout period for quest phase- Specified by:
getMinTimeOutin interfaceITPPQuest- Overrides:
getMinTimeOutin classTPPQuest- Returns:
- - min quest phase timeout
-
getMaxTimeOut
public int getMaxTimeOut()Description copied from interface:ITPPQuestreturn maximal timeout period for quest phase- Specified by:
getMaxTimeOutin interfaceITPPQuest- Overrides:
getMaxTimeOutin classTPPQuest- Returns:
- - max quest phase timeout
-
phaseToDefaultPhase
Description copied from interface:ITPPQuestfunction will reset quest state to default phase (INACTIVE).- Specified by:
phaseToDefaultPhasein interfaceITPPQuest- Overrides:
phaseToDefaultPhasein classTPPQuest- Parameters:
comments- - comments for switching event
-
phaseToNextPhase
Description copied from interface:ITPPQuestFunction will change phase to next phase.- Specified by:
phaseToNextPhasein interfaceITPPQuest- Overrides:
phaseToNextPhasein classTPPQuest- Parameters:
nextPhase- - next phasecomments- - comments for switching event
-
getSwitchingToNextPhaseMessage
Pied Piper will now start to collect rats :-)- Specified by:
getSwitchingToNextPhaseMessagein interfaceITPPQuest- Overrides:
getSwitchingToNextPhaseMessagein classTPPQuest- Returns:
- - npc shouts at switching quest phase.
-
getPhase
Description copied from interface:ITPPQuestGet the current phase.
-