Class TPPQuest
java.lang.Object
games.stendhal.server.maps.quests.piedpiper.TPPQuest
- All Implemented Interfaces:
ITPPQuest
,ITPPQuestConstants
- Direct Known Subclasses:
AwaitingPhase
,InactivePhase
,InvasionPhase
,OutgoingPhase
-
Nested Class Summary
Nested classes/interfaces inherited from interface games.stendhal.server.maps.quests.piedpiper.ITPPQuestConstants
ITPPQuestConstants.TPP_Phase
-
Field Summary
Modifier and TypeFieldDescriptionprotected static org.apache.log4j.Logger
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 TypeMethodDescriptionprotected void
changeShouts(int time, String msg)
int
return maximal timeout period for quest phaseint
return minimal timeout period for quest phasegetPhase()
Get the current phase.function return shout message when quest going to default phasefunction return shout message when quest going to next phasevoid
phaseToDefaultPhase(List<String> comments)
function will reset quest state to default phase (INACTIVE).void
phaseToNextPhase(ITPPQuest nextPhase, List<String> comments)
Function will change phase to next phase.void
prepare()
function will perform necessary actions at phase startvoid
shoutMessage(String msg)
wrapper for shout to all functionprotected void
startShouts(int time, String msg)
protected void
-
Field Details
-
logger
protected static final org.apache.log4j.Logger logger -
timings
-
-
Constructor Details
-
TPPQuest
-
-
Method Details
-
getSwitchingToNextPhaseMessage
Description copied from interface:ITPPQuest
function return shout message when quest going to next phase- Specified by:
getSwitchingToNextPhaseMessage
in interfaceITPPQuest
- Returns:
- next phase message
-
getSwitchingToDefPhaseMessage
Description copied from interface:ITPPQuest
function return shout message when quest going to default phase- Specified by:
getSwitchingToDefPhaseMessage
in interfaceITPPQuest
- Returns:
- default phase message
-
getPhase
Description copied from interface:ITPPQuest
Get the current phase. -
shoutMessage
wrapper for shout to all function- Parameters:
msg
-
-
changeShouts
-
startShouts
-
stopShouts
protected void stopShouts() -
phaseToDefaultPhase
Description copied from interface:ITPPQuest
function will reset quest state to default phase (INACTIVE).- Specified by:
phaseToDefaultPhase
in interfaceITPPQuest
-
phaseToNextPhase
Description copied from interface:ITPPQuest
Function will change phase to next phase.- Specified by:
phaseToNextPhase
in interfaceITPPQuest
-
prepare
public void prepare()Description copied from interface:ITPPQuest
function will perform necessary actions at phase start -
getMaxTimeOut
public int getMaxTimeOut()Description copied from interface:ITPPQuest
return maximal timeout period for quest phase- Specified by:
getMaxTimeOut
in interfaceITPPQuest
- Returns:
- maximum timeout
-
getMinTimeOut
public int getMinTimeOut()Description copied from interface:ITPPQuest
return minimal timeout period for quest phase- Specified by:
getMinTimeOut
in interfaceITPPQuest
- Returns:
- minimum timeout
-