Class LootSystem

All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, com.esotericsoftware.kryo.KryoSerializable

public final class LootSystem extends GameSystem
  • Field Details

    • REWARDING_AD_VIEW_BONUSES

      public static final int[] REWARDING_AD_VIEW_BONUSES
    • ENCRYPTED_CASE_GLOBAL_INTERVAL

      public static final float ENCRYPTED_CASE_GLOBAL_INTERVAL
      See Also:
    • random

      public com.badlogic.gdx.math.RandomXS128 random
    • globalLootDropRateMultiplier

      public float globalLootDropRateMultiplier
    • inventoryStatistics

      public ProgressManager.InventoryStatistics inventoryStatistics
    • minersMineOnlyLegendaries

      public boolean minersMineOnlyLegendaries
    • listeners

  • Constructor Details

    • LootSystem

      public LootSystem()
  • Method Details

    • write

      public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
      Specified by:
      write in interface com.esotericsoftware.kryo.KryoSerializable
      Overrides:
      write in class Registrable
    • read

      public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input)
      Specified by:
      read in interface com.esotericsoftware.kryo.KryoSerializable
      Overrides:
      read in class Registrable
    • affectsGameState

      public boolean affectsGameState()
      Specified by:
      affectsGameState in class GameSystem
    • main

      public static void main(String[] args)
    • setup

      public void setup()
      Description copied from class: GameSystem
      Произвести начальную настройку системы. На момент вызова этого метода, systemProvider содержит объекты всех систем.
      Overrides:
      setup in class GameSystem
    • update

      public void update(float deltaTime)
      Overrides:
      update in class GameSystem
    • getRewardingAdViews

      public int getRewardingAdViews()
    • getTimeToRewardingAds

      public float getTimeToRewardingAds(boolean withGlobalDelay)
      Returns:
      -1, если следующего видео не будет
    • isRewardingAdAvailableInReality

      public boolean isRewardingAdAvailableInReality()
    • isRewardingAdAvailableByState

      public boolean isRewardingAdAvailableByState()
    • viewRewardingAdAction

      public void viewRewardingAdAction()
    • getRewardingAdsLootMultiplier

      public float getRewardingAdsLootMultiplier()
    • canGiveEncryptedChests

      public boolean canGiveEncryptedChests()
    • forceFillWithLoot

      public ItemStack forceFillWithLoot(Enemy enemy)
    • fillWithLoot

      public void fillWithLoot(Enemy enemy)
      Вызывается при спавне
    • getLootSlots

      public int getLootSlots(MinerType minerType)
    • getSourceMinedItems

      @Null public com.badlogic.gdx.utils.Array<ItemStack> getSourceMinedItems(int x, int y)
    • getOrCreateSourceMinedItems

      public com.badlogic.gdx.utils.Array<ItemStack> getOrCreateSourceMinedItems(int x, int y)
    • profileUpdate

      public boolean profileUpdate()
      Description copied from class: GameSystem
      Нужно ли учитывать время выполнения update() в Debug
      Overrides:
      profileUpdate in class GameSystem
    • getSystemName

      public String getSystemName()
      Specified by:
      getSystemName in class GameSystem