Package com.prineside.tdi2.managers
Class TileManager
java.lang.Object
com.prineside.tdi2.Manager.ManagerAdapter
com.prineside.tdi2.managers.TileManager
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
,Manager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from interface com.prineside.tdi2.Manager
Manager.ManagerAdapter, Manager.ManagerWithListeners<T>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateRandomTile
(float quality, com.badlogic.gdx.math.RandomXS128 random, ProgressManager.InventoryStatistics inventoryStatistics) Tile[][]
createTileArrayFromJson
(com.badlogic.gdx.utils.JsonValue jsonValue, boolean flipVertically) Deprecated.createTileFromJson
(com.badlogic.gdx.utils.JsonValue jsonValue) createTileFromJsonString
(String jsonString) void
dispose()
Releases all resources of this object.Tile.Factory<? extends Tile>
getFactory
(TileType tileType) com.badlogic.gdx.graphics.g2d.TextureRegion
getRoadTexture
(Tile left, Tile right, Tile top, Tile bottom) void
setup()
Вызывается, когда объекты всех менеджеров созданы и можно к ним обращатьсяMethods inherited from class com.prineside.tdi2.Manager.ManagerAdapter
clearPools, postRender, preRender, test
-
Field Details
-
F
-
-
Constructor Details
-
TileManager
public TileManager()
-
-
Method Details
-
setup
public void setup()Description copied from interface:Manager
Вызывается, когда объекты всех менеджеров созданы и можно к ним обращаться- Specified by:
setup
in interfaceManager
- Overrides:
setup
in classManager.ManagerAdapter
-
getFactory
-
createTileFromJsonString
-
createTileFromJson
-
createTileArrayFromJson
@Deprecated public Tile[][] createTileArrayFromJson(com.badlogic.gdx.utils.JsonValue jsonValue, boolean flipVertically) Deprecated. -
getRoadTexture
-
createRandomTile
public Tile createRandomTile(float quality, com.badlogic.gdx.math.RandomXS128 random, ProgressManager.InventoryStatistics inventoryStatistics) -
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
- Overrides:
dispose
in classManager.ManagerAdapter
-