java.lang.Object
games.stendhal.server.maps.quests.piedpiper.TPPQuest
All Implemented Interfaces:
ITPPQuest, ITPPQuestConstants
Direct Known Subclasses:
AwaitingPhase, InactivePhase, InvasionPhase, OutgoingPhase

public class TPPQuest extends Object implements ITPPQuest
  • Field Details

    • logger

      protected static final org.apache.log4j.Logger logger
    • timings

      protected Map<String,​Integer> timings
  • Constructor Details

  • Method Details

    • getSwitchingToNextPhaseMessage

      public String getSwitchingToNextPhaseMessage()
      Description copied from interface: ITPPQuest
      function return shout message when quest going to next phase
      Specified by:
      getSwitchingToNextPhaseMessage in interface ITPPQuest
      Returns:
      next phase message
    • getSwitchingToDefPhaseMessage

      public String getSwitchingToDefPhaseMessage()
      Description copied from interface: ITPPQuest
      function return shout message when quest going to default phase
      Specified by:
      getSwitchingToDefPhaseMessage in interface ITPPQuest
      Returns:
      default phase message
    • getPhase

      public ITPPQuestConstants.TPP_Phase getPhase()
      Description copied from interface: ITPPQuest
      Get the current phase.
      Specified by:
      getPhase in interface ITPPQuest
      Returns:
      quest phase
    • shoutMessage

      public void shoutMessage(String msg)
      wrapper for shout to all function
      Parameters:
      msg -
    • changeShouts

      protected void changeShouts(int time, String msg)
    • startShouts

      protected void startShouts(int time, String msg)
    • stopShouts

      protected void stopShouts()
    • phaseToDefaultPhase

      public void phaseToDefaultPhase(List<String> comments)
      Description copied from interface: ITPPQuest
      function will reset quest state to default phase (INACTIVE).
      Specified by:
      phaseToDefaultPhase in interface ITPPQuest
    • phaseToNextPhase

      public void phaseToNextPhase(ITPPQuest nextPhase, List<String> comments)
      Description copied from interface: ITPPQuest
      Function will change phase to next phase.
      Specified by:
      phaseToNextPhase in interface ITPPQuest
    • prepare

      public void prepare()
      Description copied from interface: ITPPQuest
      function will perform necessary actions at phase start
      Specified by:
      prepare in interface ITPPQuest
    • getMaxTimeOut

      public int getMaxTimeOut()
      Description copied from interface: ITPPQuest
      return maximal timeout period for quest phase
      Specified by:
      getMaxTimeOut in interface ITPPQuest
      Returns:
      maximum timeout
    • getMinTimeOut

      public int getMinTimeOut()
      Description copied from interface: ITPPQuest
      return minimal timeout period for quest phase
      Specified by:
      getMinTimeOut in interface ITPPQuest
      Returns:
      minimum timeout