Class Miner

All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable
Direct Known Subclasses:
InfiarMiner, MatrixMiner, ScalarMiner, TensorMiner, VectorMiner

public abstract class Miner extends Registrable
  • Field Details

    • MAX_UPGRADE_LEVEL

      public static final int MAX_UPGRADE_LEVEL
      See Also:
    • id

      public int id
    • type

      public MinerType type
    • moneySpentOn

      public CheatSafeInt moneySpentOn
    • minedResources

      public CheatSafeInt[] minedResources
    • minedItems

      public com.badlogic.gdx.utils.Array<ItemStack> minedItems
    • nearbyModifiers

      public com.badlogic.gdx.utils.DelayedRemovalArray<Modifier.ModifierSidePair> nearbyModifiers
    • nextMinedResourceType

      public ResourceType nextMinedResourceType
    • miningTime

      public float miningTime
    • doubleSpeedTimeLeft

      public float doubleSpeedTimeLeft
    • doubleSpeedParticle

      public com.badlogic.gdx.graphics.g2d.ParticleEffectPool.PooledEffect doubleSpeedParticle
  • 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
    • toJson

      public void toJson(com.badlogic.gdx.utils.Json json)
    • registerNearbyModifier

      public void registerNearbyModifier(Modifier.ModifierSidePair cfg)
    • unregisterNearbyModifier

      public void unregisterNearbyModifier(Modifier modifier)
    • getBaseUpgradePrice

      public abstract int getBaseUpgradePrice(int level)
    • setUpgradeLevel

      public void setUpgradeLevel(int level)
    • getUpgradeLevel

      public int getUpgradeLevel()
    • getCurrentMiningSpeedFromSystem

      public float getCurrentMiningSpeedFromSystem()
    • getInstallDuration

      public int getInstallDuration()
      Returns:
      время в секундах, необходимое на установку майнера
    • getSellPrice

      public int getSellPrice()
    • isPrepared

      public boolean isPrepared()
      Возвращает true, если башня уже подготовлена и майнит
    • getPreparationProgress

      public float getPreparationProgress()
    • setInstallTime

      public void setInstallTime(float time)
    • reduceInstallTime

      public void reduceInstallTime(float time)
    • getInstallTimeLeft

      public float getInstallTimeLeft()
    • getVisualMiningProgress

      public float getVisualMiningProgress()
    • getTile

      public SourceTile getTile()
    • setTile

      public void setTile(SourceTile tile)
    • updatePieChart

      public void updatePieChart(float centerX, float centerY, float scale)
    • placedOnMap

      public void placedOnMap()
    • removedFromMap

      public void removedFromMap()
    • drawBatch

      public void drawBatch(com.badlogic.gdx.graphics.g2d.Batch batch, float x, float y, float size, float deltaTime, MapRenderingSystem.DrawMode drawMode)
    • loadFromJson

      public void loadFromJson(com.badlogic.gdx.utils.JsonValue value)
    • cloneMiner

      public Miner cloneMiner()