Class Miner.Factory<T extends Miner>

java.lang.Object
com.prineside.tdi2.Miner.Factory<T>
All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
Direct Known Subclasses:
InfiarMiner.InfiarMinerFactory, MatrixMiner.MatrixMinerFactory, ScalarMiner.ScalarMinerFactory, TensorMiner.TensorMinerFactory, VectorMiner.VectorMinerFactory
Enclosing class:
Miner

public abstract static class Miner.Factory<T extends Miner> extends Object implements com.badlogic.gdx.utils.Disposable
  • Method Details

    • create

      public abstract T create()
    • canMineResource

      public abstract boolean canMineResource(ResourceType resourceType)
    • getBaseBuildPrice

      public abstract int getBaseBuildPrice(GameValueProvider gvp)
    • getTexture

      public abstract com.badlogic.gdx.graphics.g2d.TextureRegion getTexture()
    • getBaseMiningSpeed

      public abstract float getBaseMiningSpeed(ResourceType resourceType, GameValueProvider gvp)
      Базовая скорость добычи ресурса, ед/мин
    • setup

      public void setup()
      Вызывается, когда объекты всех Managers созданы
    • getTitle

      public String getTitle()
    • getDescription

      public String getDescription()
    • setupAssets

      public void setupAssets()
    • dispose

      public void dispose()
      Description copied from interface: com.badlogic.gdx.utils.Disposable
      Releases all resources of this object.
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable
    • createIconActor

      public com.badlogic.gdx.scenes.scene2d.Actor createIconActor(float size)