Class StatisticsManager

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

public class StatisticsManager extends Manager.ManagerAdapter
  • Constructor Details

    • StatisticsManager

      public StatisticsManager()
  • Method Details

    • setup

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

      public CharSequence getStatisticsTitle(StatisticsType type)
    • formatStatisticsValue

      public CharSequence formatStatisticsValue(StatisticsType type, double value)
    • getAllTime

      public double getAllTime(StatisticsType type)
    • getMaxOneGame

      public double getMaxOneGame(StatisticsType type)
    • save

      public void save()
    • registerDelta

      public void registerDelta(StatisticsType statType, double amount)
    • registerValue

      public void registerValue(StatisticsType statType, double value)
    • registerMaxOneGame

      public void registerMaxOneGame(StatisticsType statType, double amount)
      Если сохраненное ранее больше, не будет перезаписано
    • dispose

      public void dispose()
      Description copied from interface: com.badlogic.gdx.utils.Disposable
      Releases all resources of this object.
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable
      Overrides:
      dispose in class Manager.ManagerAdapter