Class QuestInfo

java.lang.Object
games.stendhal.server.maps.quests.QuestInfo

public class QuestInfo extends Object
Static info about quests, filled with fillQuestInfo in each quest
Author:
hendrik
  • Constructor Details

    • QuestInfo

      public QuestInfo()
  • Method Details

    • getSuggestedMinLevel

      public int getSuggestedMinLevel()
    • setSuggestedMinLevel

      public void setSuggestedMinLevel(int suggestedMinLevel)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getDescriptionGM

      public String getDescriptionGM()
    • setDescriptionGM

      public void setDescriptionGM(String descriptionGM)
    • getHints

      public Map<String,String> getHints()
    • setHints

      public void setHints(Map<String,String> hints)
    • getHistory

      public Map<String,String> getHistory()
    • setHistory

      public void setHistory(Map<String,String> history)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getRepeatable

      public boolean getRepeatable()
    • setRepeatable

      public void setRepeatable(boolean repeatable)
    • setCompletionsIndexes

      public void setCompletionsIndexes(Integer openIndex, Integer completeIndex)
      Sets quest slot indexes to check for completions count.
      Parameters:
      openIndex - Index where count is stored while quest is in open state.
      completeIndex - Index where count is stored while quest is in complete state.
    • setCompletionsIndexes

      public void setCompletionsIndexes(Integer index)
      Sets quest slot indexes to check for completions count.
      Parameters:
      index - Index where count is stored while quest in open or complete state.
    • setCompletionsIndexes

      public void setCompletionsIndexes(Pair<Integer,Integer> completionsIndexes)
      Sets quest slot indexes to check for completions count.
      Parameters:
      completionsIndexes - Pair where `first` attribute represents slot index for open state and `second` attribute represents index for complete state.
    • getCompletionsIndexes

      public Pair<Integer,Integer> getCompletionsIndexes()
      Retrieves quest slot indexes where completions count are stored.
      Returns:
      A `marauroa.common.Pair` where `first` attribute represents slot index while quest is in open state and `second` represents slot index while quest is in complete state.