Package com.prineside.tdi2
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
canMineResource
(ResourceType resourceType) abstract T
create()
com.badlogic.gdx.scenes.scene2d.Actor
createIconActor
(float size) void
dispose()
Releases all resources of this object.abstract int
abstract float
getBaseMiningSpeed
(ResourceType resourceType, GameValueProvider gvp) Базовая скорость добычи ресурса, ед/минabstract com.badlogic.gdx.graphics.g2d.TextureRegion
getTitle()
void
setup()
Вызывается, когда объекты всех Managers созданыvoid
-
Constructor Details
-
Factory
-
-
Method Details
-
create
-
canMineResource
-
getBaseBuildPrice
-
getTexture
public abstract com.badlogic.gdx.graphics.g2d.TextureRegion getTexture() -
getBaseMiningSpeed
Базовая скорость добычи ресурса, ед/мин -
setup
public void setup()Вызывается, когда объекты всех Managers созданы -
getTitle
-
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 interfacecom.badlogic.gdx.utils.Disposable
-
createIconActor
public com.badlogic.gdx.scenes.scene2d.Actor createIconActor(float size)
-