Package com.prineside.tdi2.managers
Class EnemyManager
java.lang.Object
com.prineside.tdi2.Manager.ManagerAdapter
com.prineside.tdi2.managers.EnemyManager
- 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.utils.Pool<com.badlogic.gdx.utils.DelayedRemovalArray[]>final EnemyManager.Factories -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Releases all resources of this object.getBossEnemyType(BossType bossType) com.badlogic.gdx.graphics.g2d.TextureRegiongetDamageTypeIcon(DamageType damageType) Enemy.Factory<? extends Enemy>getFactory(EnemyType enemyType) com.badlogic.gdx.graphics.g2d.TextureRegiongetIceOverlayTexture(int variantIdx) getMainEnemyType(EnemyType enemyType) booleanisEnemyTypeNewForPlayer(EnemyType enemyType) voidmarkEnemyTypeAsNotNewForPlayer(EnemyType enemyType) Отметить врага как "не нового" (игрок уже увидел информацию о нем)voidsetup()Вызывается, когда объекты всех менеджеров созданы и можно к ним обращатьсяvoidtest()Запустить тестирование, чтобы проверить, все ли ресурсы есть (текстуры / i18n) Запускается после загрузки всех менеджеровMethods inherited from class com.prineside.tdi2.Manager.ManagerAdapter
clearPools, postRender, preRender
-
Field Details
-
F
-
enemyBuffArraysPool
public com.badlogic.gdx.utils.Pool<com.badlogic.gdx.utils.DelayedRemovalArray[]> enemyBuffArraysPool
-
-
Constructor Details
-
EnemyManager
public EnemyManager()
-
-
Method Details
-
getBossEnemyType
-
setup
public void setup()Description copied from interface:ManagerВызывается, когда объекты всех менеджеров созданы и можно к ним обращаться- Specified by:
setupin interfaceManager- Overrides:
setupin classManager.ManagerAdapter
-
getMainEnemyType
-
getIceOverlayTexture
public com.badlogic.gdx.graphics.g2d.TextureRegion getIceOverlayTexture(int variantIdx) -
getDamageTypeIcon
-
getFactory
-
isEnemyTypeNewForPlayer
- Returns:
- true, если враг ранее не спавнился
-
markEnemyTypeAsNotNewForPlayer
Отметить врага как "не нового" (игрок уже увидел информацию о нем) -
test
public void test()Description copied from interface:ManagerЗапустить тестирование, чтобы проверить, все ли ресурсы есть (текстуры / i18n) Запускается после загрузки всех менеджеров- Specified by:
testin interfaceManager- Overrides:
testin classManager.ManagerAdapter
-
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
-