Class DailyQuestManager

java.lang.Object
com.prineside.tdi2.Manager.ManagerAdapter
com.prineside.tdi2.managers.DailyQuestManager
All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, Manager

public class DailyQuestManager extends Manager.ManagerAdapter
  • Field Details

    • LEVEL_NAME_PREFIX

      public static final String LEVEL_NAME_PREFIX
      See Also:
    • RESET_QUESTS_QUEST_ID

      public static final String RESET_QUESTS_QUEST_ID
      See Also:
    • dailyLootMinBonusPerMonth

      public int dailyLootMinBonusPerMonth
    • dailyLootMaxBonusPerMonth

      public int dailyLootMaxBonusPerMonth
    • dailyLootDayConfigs

      public com.badlogic.gdx.utils.Array<DailyQuestManager.DailyLootDayConfig> dailyLootDayConfigs
    • dailyLootCurrentDayIndex

      public int dailyLootCurrentDayIndex
    • dailyLootDaysInRow

      public int dailyLootDaysInRow
    • dailyLootLastCompletedDay

      public String dailyLootLastCompletedDay
    • dailyLootCurrentQuest

      public String dailyLootCurrentQuest
    • dailyLootCurrentDay

      public String dailyLootCurrentDay
  • Constructor Details

    • DailyQuestManager

      public DailyQuestManager()
  • Method Details

    • getDailyLootCurrentDayIndex

      public int getDailyLootCurrentDayIndex()
    • getDailyLootCurrentMonthIndex

      public int getDailyLootCurrentMonthIndex()
    • getDailyLootNextDaysInRowMilestone

      public int getDailyLootNextDaysInRowMilestone()
    • getDailyLootNextDaysInRowLegendariesCount

      public int getDailyLootNextDaysInRowLegendariesCount()
    • getDailyLootCurrentQuest

      public String getDailyLootCurrentQuest()
    • getDailyLootDaysInRow

      public int getDailyLootDaysInRow()
    • getSecondsTillNextDailyLoot

      public int getSecondsTillNextDailyLoot()
    • isTodayDailyLootQuestCompleted

      public boolean isTodayDailyLootQuestCompleted()
    • setDailyLootQuestCompleted

      public IssuedItems setDailyLootQuestCompleted()
      Returns:
      IssuedItems или null
    • setup

      public void setup()
      Description copied from interface: Manager
      Вызывается, когда объекты всех менеджеров созданы и можно к ним обращаться
      Specified by:
      setup in interface Manager
      Overrides:
      setup in class Manager.ManagerAdapter
    • getCurrentDayDate

      public String getCurrentDayDate()
    • getNextDayDate

      public String getNextDayDate()
    • getDailyQuestLevelCache

      public DailyQuestManager.DailyQuestLevel getDailyQuestLevelCache()
    • getDailyQuestHashFromServer

      public void getDailyQuestHashFromServer(int id, ObjectRetriever<String> retriever)
    • getCurrentDayLevel

      public void getCurrentDayLevel(ObjectRetriever<DailyQuestManager.DailyQuestLevel> retriever)
      Получает с сервера название сегодняшнего уровня Сервер может вернуть status FAILED, если игра не последней версии, в таком случае применяется локальный алгоритм Если уровень берется первый раз за день, id его пройденных квестов сбрасываются
    • getDailyQuestHash

      public String getDailyQuestHash(int questId)
      Local, internal or null
    • removeLoadedDailyQuestMapIfMd5HashDiffers

      public void removeLoadedDailyQuestMapIfMd5HashDiffers(int questId, String hash)
    • loadAndStoreDailyQuestFromServer

      public void loadAndStoreDailyQuestFromServer(int questId, ObjectRetriever<BasicLevel> retriever)
      Parameters:
      retriever - может получить null в случае ошибки
    • setLastCompletedDailyQuestTimestamp

      public void setLastCompletedDailyQuestTimestamp(int timestamp)
    • startDailyLevel

      public void startDailyLevel()
    • getLeaderboards

      public void getLeaderboards(String boardDate, ObjectRetriever<DailyQuestManager.DailyQuestLeaderboards> retriever)