Package com.prineside.tdi2.managers
Class MinerManager
java.lang.Object
com.prineside.tdi2.Manager.ManagerAdapter
com.prineside.tdi2.managers.MinerManager
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable,Manager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from interface com.prineside.tdi2.Manager
Manager.ManagerAdapter, Manager.ManagerWithListeners<T> -
Field Summary
FieldsModifier and TypeFieldDescriptioncom.badlogic.gdx.graphics.g2d.ParticleEffectPoolfinal MinerManager.Factoriescom.badlogic.gdx.graphics.g2d.ParticleEffectPool[]com.badlogic.gdx.graphics.g2d.ParticleEffectPool -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Releases all resources of this object.fromJson(com.badlogic.gdx.utils.JsonValue jsonValue) getBuiltStatisticType(MinerType minerType) Miner.Factory<? extends Miner>getFactory(MinerType minerType) getInstallDurationGameValueType(MinerType minerType) getMoneySpentStatisticType(MinerType minerType) getUpgradedStatisticType(MinerType minerType) booleanisMinerOpened(MinerType minerType, GameValueProvider gvp) booleanvoidsetup()Вызывается, когда объекты всех менеджеров созданы и можно к ним обращатьсяvoidtest()Запустить тестирование, чтобы проверить, все ли ресурсы есть (текстуры / i18n) Запускается после загрузки всех менеджеровMethods inherited from class com.prineside.tdi2.Manager.ManagerAdapter
clearPools, postRender, preRender
-
Field Details
-
F
-
SHORT_MINER_ALIASES
-
highlightParticles
public com.badlogic.gdx.graphics.g2d.ParticleEffectPool[] highlightParticles -
minedResourceParticleEffectPool
public com.badlogic.gdx.graphics.g2d.ParticleEffectPool minedResourceParticleEffectPool -
doubleSpeedParticleEffectPool
public com.badlogic.gdx.graphics.g2d.ParticleEffectPool doubleSpeedParticleEffectPool
-
-
Constructor Details
-
MinerManager
public MinerManager()
-
-
Method Details
-
isMinerOpened
-
setup
public void setup()Description copied from interface:ManagerВызывается, когда объекты всех менеджеров созданы и можно к ним обращаться- Specified by:
setupin interfaceManager- Overrides:
setupin classManager.ManagerAdapter
-
getFactory
-
getTitle
-
minersAndEnergyAvailable
public boolean minersAndEnergyAvailable()- Returns:
- true, если игрок уже открыл майнеры и ему можно показывать диаграмму ресурсов, а также все, что связано с энергией Не использовать во время игры, так как в базах может быть другая конфигурация
-
getInstallDurationGameValueType
-
getBuiltStatisticType
-
getMoneySpentStatisticType
-
getUpgradedStatisticType
-
test
public void test()Description copied from interface:ManagerЗапустить тестирование, чтобы проверить, все ли ресурсы есть (текстуры / i18n) Запускается после загрузки всех менеджеров- Specified by:
testin interfaceManager- Overrides:
testin classManager.ManagerAdapter
-
fromJson
-
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.utils.DisposableReleases all resources of this object.- Specified by:
disposein interfacecom.badlogic.gdx.utils.Disposable- Overrides:
disposein classManager.ManagerAdapter
-