Package com.prineside.tdi2
Class Tile.Factory.AbstractFactory<T extends Tile>
java.lang.Object
com.prineside.tdi2.Tile.Factory.AbstractFactory<T>
- All Implemented Interfaces:
Disposable
,EntityFactory
,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, RandomXS128 random) void
dispose()
Releases all resources of this object.getTitle()
void
setup()
Вызывается, когда объекты всех Managers созданыvoid
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.prineside.tdi2.Tile.Factory
create, getProbabilityForPrize
-
Constructor Details
-
AbstractFactory
-
-
Method Details
-
getTitle
- Specified by:
getTitle
in interfaceTile.Factory<T extends Tile>
-
getDescription
- Specified by:
getDescription
in interfaceTile.Factory<T extends Tile>
-
createRandom
- Specified by:
createRandom
in interfaceTile.Factory<T extends Tile>
random
- может быть null (тогда используется FastRandom)- Returns:
- тайл с определенным качеством или null, если тайл невозможно создать с таким качеством (всегда одинаково для одинакового качества, без рандома)
-
setup
public void setup()Description copied from interface:Tile.Factory
Вызывается, когда объекты всех Managers созданы- Specified by:
setup
in interfaceTile.Factory<T extends Tile>
-
setupAssets
public void setupAssets() -
fromJson
- Specified by:
fromJson
in interfaceTile.Factory<T extends Tile>
-
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.utils.Disposable
Releases all resources of this object.- Specified by:
dispose
in interfaceDisposable
-