Java 类com.badlogic.gdx.maps.tiled.TiledMapRenderer 实例源码

项目:jrpg-engine    文件:GameMap.java   
public GameMap(final OrthographicCamera camera, final TiledMap map,
               final TiledMapRenderer mapRenderer, final Location parentLocation) {
    this.camera = camera;
    this.map = map;
    this.mapRenderer = mapRenderer;
    this.parentLocation = parentLocation;
    mapLayers = new TreeMap<>();
    entities = new LinkedList<>();
    triggers = new LinkedList<>();
    tileTriggers = new HashMap<>();
    actionQueue = new LinkedList<>();
    animations = new LinkedList<>();
    mapEffects = new LinkedList<>();
    namedActors = new HashMap<>();
    doors = new HashMap<>();
    buildMapLayers(map);
    graphNodeIndex = new TileCoordinate[getNodeCount()];
}
项目:jrpg-engine    文件:MapDefinition.java   
protected final GameMap loadMap(final GraphicsService graphicsService, final AssetManager assetManager,
                                final String mapPath, final Location parentLocation) {
    if (!assetManager.isLoaded(mapPath, TiledMap.class)) {
        assetManager.load(mapPath, TiledMap.class);
        assetManager.finishLoading();
    }
    TiledMap tiledMap = assetManager.get(mapPath);
    TiledMapRenderer mapRenderer = graphicsService.getTileMapRenderer(tiledMap);
    return new GameMap(graphicsService.getCamera(), tiledMap, mapRenderer, parentLocation);
}
项目:jrpg-engine    文件:MapLayer.java   
public MapLayer(final int layerIndex, final TiledMapRenderer mapRenderer) {
    this.layerIndex = layerIndex;
    this.mapRenderer = mapRenderer;
}
项目:jrpg-engine    文件:GraphicsServiceImpl.java   
@Override
public TiledMapRenderer getTileMapRenderer(final TiledMap tiledMap) {
    return new OrthogonalTiledMapRenderer(tiledMap, spriteBatch);
}
项目:AI_TestBed_v3    文件:Level.java   
public TiledMapRenderer getMapRenderer() {
    return mapRenderer;
}
项目:AI_TestBed_v3    文件:Level.java   
public void setMapRenderer(TiledMapRenderer mapRenderer) {
    this.mapRenderer = mapRenderer;
}
项目:jrpg-engine    文件:GraphicsService.java   
TiledMapRenderer getTileMapRenderer(TiledMap tiledMap);