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 class
static class
Nested classes/interfaces inherited from interface com.prineside.tdi2.Manager
Manager.ManagerAdapter, Manager.ManagerWithListeners<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptioncom.badlogic.gdx.graphics.g2d.ParticleEffectPool
final MinerManager.Factories
com.badlogic.gdx.graphics.g2d.ParticleEffectPool[]
com.badlogic.gdx.graphics.g2d.ParticleEffectPool
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
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) boolean
isMinerOpened
(MinerType minerType, GameValueProvider gvp) boolean
void
setup()
Вызывается, когда объекты всех менеджеров созданы и можно к ним обращатьсяvoid
test()
Запустить тестирование, чтобы проверить, все ли ресурсы есть (текстуры / 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:
setup
in interfaceManager
- Overrides:
setup
in 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:
test
in interfaceManager
- Overrides:
test
in classManager.ManagerAdapter
-
fromJson
-
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.utils.Disposable
Releases all resources of this object.- Specified by:
dispose
in interfacecom.badlogic.gdx.utils.Disposable
- Overrides:
dispose
in classManager.ManagerAdapter
-