Package com.prineside.tdi2
Class Tile.Factory.AbstractFactory<T extends Tile>
java.lang.Object
com.prineside.tdi2.Tile.Factory.AbstractFactory<T>
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable,Tile.Factory<T>
- Direct Known Subclasses:
BossTile.BossTileFactory,CoreTile.CoreTileFactory,DummyTile.DummyTileFactory,EqualizerTile.EqualizerTileFactory,GameValueTile.GameValueTileFactory,PlatformTile.SpaceTileFactory,QuadTile.QuadTileFactory,RoadTile.RoadTileFactory,ScriptTile.ScriptTileFactory,SourceTile.SourceTileFactory,SpawnTile.SpawnTileFactory,TargetTile.TargetTileFactory,XmMusicTrackTile.XmMusicTrackTileFactory
- Enclosing interface:
- Tile.Factory<T extends Tile>
public abstract static class Tile.Factory.AbstractFactory<T extends Tile>
extends Object
implements Tile.Factory<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.prineside.tdi2.Tile.Factory
Tile.Factory.AbstractFactory<T extends Tile> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateRandom(float quality, com.badlogic.gdx.math.RandomXS128 random) voiddispose()Releases all resources of this object.fromJson(com.badlogic.gdx.utils.JsonValue jsonValue) getTitle()voidsetup()Вызывается, когда объекты всех Managers созданыvoidMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.prineside.tdi2.Tile.Factory
create, getProbabilityForPrize
-
Constructor Details
-
AbstractFactory
-
-
Method Details
-
getTitle
- Specified by:
getTitlein interfaceTile.Factory<T extends Tile>
-
getDescription
- Specified by:
getDescriptionin interfaceTile.Factory<T extends Tile>
-
createRandom
- Specified by:
createRandomin interfaceTile.Factory<T extends Tile>random- может быть null (тогда используется FastRandom)- Returns:
- тайл с определенным качеством или null, если тайл невозможно создать с таким качеством (всегда одинаково для одинакового качества, без рандома)
-
setup
public void setup()Description copied from interface:Tile.FactoryВызывается, когда объекты всех Managers созданы- Specified by:
setupin interfaceTile.Factory<T extends Tile>
-
setupAssets
public void setupAssets() -
fromJson
- Specified by:
fromJsonin interfaceTile.Factory<T extends Tile>
-
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
-