APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.badlogic.gdx.tiledmappacker

public Class TiledMapPackerTestRender

extends ApplicationAdapter
Class Inheritance
Imports
java.io.File, com.badlogic.gdx.ApplicationAdapter, .Gdx, .Input.Keys, com.badlogic.gdx.assets.loaders.resolvers.InternalFileHandleResolver, com.badlogic.gdx.backends.lwjgl.LwjglApplication, com.badlogic.gdx.files.FileHandle, com.badlogic.gdx.graphics.GL20, .OrthographicCamera, com.badlogic.gdx.maps.tiled.AtlasTmjMapLoader, .AtlasTmxMapLoader, .BaseTiledMapLoader, .TiledMap, com.badlogic.gdx.maps.tiled.renderers.OrthogonalTiledMapRenderer, com.badlogic.gdx.utils.viewport.FitViewport, .Viewport

Renders and, optionally, deletes maps processed by TiledMapPackerTest. Run TiledMapPackerTest before running this

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Field Summary

Modifier and TypeField and Description
private AtlasTmjMapLoader
private AtlasTmxMapLoader
private OrthographicCamera
private final boolean
private final boolean
private TiledMap
private static final String
private OrthogonalTiledMapRenderer
private BaseTiledMapLoader.Parameters
private BaseTiledMapLoader.Parameters
private final float
private static final String
PROJECT_FILE_PATH

Project file won't exist in the deleteMe folder.

private final TiledMapPackerTestRender.TestMapType
TEST_MAP_TYPE

Choose which processed map you want to load.

private final float
private Viewport
private final float
private final float

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
public static void
main(String[] args)

public void
public void
resize(int width, int height)

Overrides com.badlogic.gdx.ApplicationAdapter.resize.

Implements com.badlogic.gdx.ApplicationListener.resize.

Called when the Application is resized.

Inherited from com.badlogic.gdx.ApplicationAdapter:
pauseresume

Field Detail

atlasTmjMapLoaderback to summary
private AtlasTmjMapLoader atlasTmjMapLoader
atlasTmxMapLoaderback to summary
private AtlasTmxMapLoader atlasTmxMapLoader
camback to summary
private OrthographicCamera cam
CENTER_CAMback to summary
private final boolean CENTER_CAM
DELETE_DELETEME_FOLDER_ON_EXITback to summary
private final boolean DELETE_DELETEME_FOLDER_ON_EXIT
mapback to summary
private TiledMap map
MAP_PATHback to summary
private static final String MAP_PATH
mapRendererback to summary
private OrthogonalTiledMapRenderer mapRenderer
paramsback to summary
private BaseTiledMapLoader.Parameters params
paramsTmjback to summary
private BaseTiledMapLoader.Parameters paramsTmj
PIXELS_PER_METERback to summary
private final float PIXELS_PER_METER
PROJECT_FILE_PATHback to summary
private static final String PROJECT_FILE_PATH

Project file won't exist in the deleteMe folder. We must use the one in tiled-atlas-processed folder that will always be there

TEST_MAP_TYPEback to summary
private final TiledMapPackerTestRender.TestMapType TEST_MAP_TYPE

Choose which processed map you want to load. DEFAULT_TMX_MAP: The original default test map. DEFAULT_TMJ_MAP: The original default test map in the .tmj format. DEFAULT_TMX_IMGLAYER_MAP: A Test map which also loads image layers. DEFAULT_TMX_IMGLAYERS_COLLECTION_TILESET: The DEFAULT_TMX_IMGLAYER_MAP but also uses tileset made up of a collection of images as well as a normal tilesheet tileset. DEFAULT_TMJ_IMGLAYER_WITH_PROPS_MAP: A Test Map in the .tmj format, with an image layer and also supports custom class via a project file. *NOTE the DEFAULT_TMJ_IMGLAYER_WITH_PROPS_MAP map will only show up in deleteMe folder if the TiledMapPackerTest is run with TestType testType = TestType.DefaultUsageWithProjectFile;

UNIT_SCALEback to summary
private final float UNIT_SCALE
viewportback to summary
private Viewport viewport
WORLD_HEIGHTback to summary
private final float WORLD_HEIGHT
WORLD_WIDTHback to summary
private final float WORLD_WIDTH

Constructor Detail

TiledMapPackerTestRenderback to summary
public TiledMapPackerTestRender()

Method Detail

createback to summary
public void create()

Overrides com.badlogic.gdx.ApplicationAdapter.create.

Implements com.badlogic.gdx.ApplicationListener.create.

Doc from com.badlogic.gdx.ApplicationListener.create.

Called when the Application is first created.

Annotations
@Override
disposeback to summary
public void dispose()

Overrides com.badlogic.gdx.ApplicationAdapter.dispose.

Implements com.badlogic.gdx.ApplicationListener.dispose.

Doc from com.badlogic.gdx.ApplicationListener.dispose.

Called when the Application is destroyed. Preceded by a call to pause().

Annotations
@Override
mainback to summary
public static void main(String[] args) throws Exception
renderback to summary
public void render()

Overrides com.badlogic.gdx.ApplicationAdapter.render.

Implements com.badlogic.gdx.ApplicationListener.render.

Doc from com.badlogic.gdx.ApplicationListener.render.

Called when the Application should render itself.

Annotations
@Override
resizeback to summary
public void resize(int width, int height)

Overrides com.badlogic.gdx.ApplicationAdapter.resize.

Implements com.badlogic.gdx.ApplicationListener.resize.

Doc from com.badlogic.gdx.ApplicationListener.resize.

Called when the Application is resized. This can happen at any point during a non-paused state but will never happen before a call to create().

Annotations
@Override
com.badlogic.gdx.tiledmappacker back to summary

public final Enum TiledMapPackerTestRender.TestMapType

extends Enum<TiledMapPackerTestRender.TestMapType>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final TiledMapPackerTestRender.TestMapType
public static final TiledMapPackerTestRender.TestMapType
public static final TiledMapPackerTestRender.TestMapType
public static final TiledMapPackerTestRender.TestMapType
public static final TiledMapPackerTestRender.TestMapType

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static TiledMapPackerTestRender.TestMapType
public static TiledMapPackerTestRender.TestMapType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

DEFAULT_TMJ_IMGLAYER_WITH_PROPS_MAPback to summary
public static final TiledMapPackerTestRender.TestMapType DEFAULT_TMJ_IMGLAYER_WITH_PROPS_MAP
DEFAULT_TMJ_MAPback to summary
public static final TiledMapPackerTestRender.TestMapType DEFAULT_TMJ_MAP
DEFAULT_TMX_IMGLAYER_MAPback to summary
public static final TiledMapPackerTestRender.TestMapType DEFAULT_TMX_IMGLAYER_MAP
DEFAULT_TMX_IMGLAYERS_COLLECTION_TILESETback to summary
public static final TiledMapPackerTestRender.TestMapType DEFAULT_TMX_IMGLAYERS_COLLECTION_TILESET
DEFAULT_TMX_MAPback to summary
public static final TiledMapPackerTestRender.TestMapType DEFAULT_TMX_MAP

Constructor Detail

TestMapTypeback to summary
private TestMapType()

Method Detail

valueOfback to summary
public static TiledMapPackerTestRender.TestMapType valueOf(String name)
valuesback to summary
public static TiledMapPackerTestRender.TestMapType[] values()