Class MinerManager

java.lang.Object
com.prineside.tdi2.Manager.ManagerAdapter
com.prineside.tdi2.managers.MinerManager
All Implemented Interfaces:
Disposable, Manager

public class MinerManager extends Manager.ManagerAdapter
  • Field Details

  • Constructor Details

    • MinerManager

      public MinerManager()
  • Method Details

    • isMinerOpened

      public boolean isMinerOpened(MinerType minerType, GameValueProvider gvp)
    • setup

      public void setup()
      Description copied from interface: Manager
      Called when all manager objects are already created and can be accessed
      Specified by:
      setup in interface Manager
      Overrides:
      setup in class Manager.ManagerAdapter
    • getFactory

      public Miner.Factory<? extends Miner> getFactory(MinerType minerType)
    • getTitle

      public String getTitle(MinerType minerType)
    • minersAndEnergyAvailable

      public boolean minersAndEnergyAvailable()
      Returns:
      true, если игрок уже открыл майнеры и ему можно показывать диаграмму ресурсов, а также все, что связано с энергией Не использовать во время игры, так как в базах может быть другая конфигурация
    • getInstallDurationGameValueType

      public GameValueType getInstallDurationGameValueType(MinerType minerType)
    • getBuiltStatisticType

      public StatisticsType getBuiltStatisticType(MinerType minerType)
    • getMoneySpentStatisticType

      public StatisticsType getMoneySpentStatisticType(MinerType minerType)
    • getUpgradedStatisticType

      public StatisticsType getUpgradedStatisticType(MinerType minerType)
    • test

      public void test()
      Description copied from interface: Manager
      Called after all managers are set up. Tests managers early to make sure they can work as intended.
      Specified by:
      test in interface Manager
      Overrides:
      test in class Manager.ManagerAdapter
    • fromJson

      public Miner fromJson(JsonValue jsonValue)
    • dispose

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