本文整理匯總了Java中com.badlogic.gdx.maps.MapLayer.isVisible方法的典型用法代碼示例。如果您正苦於以下問題:Java MapLayer.isVisible方法的具體用法?Java MapLayer.isVisible怎麽用?Java MapLayer.isVisible使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.badlogic.gdx.maps.MapLayer
的用法示例。
在下文中一共展示了MapLayer.isVisible方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: renderAll
import com.badlogic.gdx.maps.MapLayer; //導入方法依賴的package包/類
/**
* Rendert alle Layer und alle Objekte
*
* @param deltaTime die Zeit, die seit dem letztem Frame vergangen ist
*/
public void renderAll(float deltaTime) {
beginRender();
for (MapLayer layer : map.getLayers()) {
if (layer.isVisible()) {
if (layer instanceof TiledMapTileLayer) {
if (layer == displayLayer)
renderDisplayLayer((TiledMapTileLayer) layer, deltaTime);
else
renderTileLayer((TiledMapTileLayer)layer);
} else if (layer instanceof TiledMapImageLayer) {
renderImageLayer((TiledMapImageLayer)layer);
} else {
renderObjects(layer);
}
}
}
endRender();
}
示例2: renderLayersExcludingSpecial
import com.badlogic.gdx.maps.MapLayer; //導入方法依賴的package包/類
protected void renderLayersExcludingSpecial(float delta) {
for (MapLayer layer : map.getTiledMap().getLayers()) {
boolean groundLayer = layer.getProperties().get(
GameMapLoader.PROPERTY_GROUND_LAYER) != null;
boolean collisionLayer = layer.getProperties().get(
GameMapLoader.PROPERTY_COLISIONS_LAYER) != null;
boolean objectLayer = layer.getProperties().get(
GameMapLoader.PROPERTY_OBJECT_LAYER) != null;
boolean overheadLayer = layer.getProperties().get(
GameMapLoader.PROPERTY_OVERHEAD_LAYER) != null;
boolean alwaysAboveLayer = layer.getProperties().get(
GameMapLoader.PROPERTY_ALWAYSABOVE_LAYER) != null;
if (groundLayer || collisionLayer || objectLayer || overheadLayer || alwaysAboveLayer) {
continue;
}
if (layer.isVisible()) {
if (layer instanceof TiledMapTileLayer) {
renderTileLayer(delta, (TiledMapTileLayer) layer);
}
}
}
}
示例3: processSystem
import com.badlogic.gdx.maps.MapLayer; //導入方法依賴的package包/類
@Override
protected void processSystem() {
for (MapLayer layer : mapSystem.map.getLayers()) {
if (layer.isVisible()) {
if (layer.getName().equals("infront")) {
renderLayer((TiledMapTileLayer) layer);
}
}
}
}
示例4: processSystem
import com.badlogic.gdx.maps.MapLayer; //導入方法依賴的package包/類
@Override
protected void processSystem() {
for (MapLayer layer : mapSystem.map.getLayers()) {
if (layer.isVisible()) {
if (!layer.getName().equals("infront")) {
renderLayer((TiledMapTileLayer) layer);
}
}
}
}
示例5: renderTileLayers
import com.badlogic.gdx.maps.MapLayer; //導入方法依賴的package包/類
protected void renderTileLayers(float delta, Array<TiledMapTileLayer> layers) {
for (MapLayer layer : layers) {
if (layer.isVisible()) {
if (layer instanceof TiledMapTileLayer) {
renderTileLayer(delta, (TiledMapTileLayer) layer);
}
}
}
}
示例6: renderLayersExcludingColisions
import com.badlogic.gdx.maps.MapLayer; //導入方法依賴的package包/類
protected void renderLayersExcludingColisions (float delta) {
for (MapLayer layer : map.getTiledMap().getLayers()) {
boolean collisionLayer = layer.getProperties().get(GameMapLoader.PROPERTY_COLISIONS_LAYER) != null;
if (collisionLayer) {
continue;
}
if (layer.isVisible()) {
if (layer instanceof TiledMapTileLayer) {
renderTileLayer(delta, (TiledMapTileLayer) layer);
}
}
}
}
示例7: render
import com.badlogic.gdx.maps.MapLayer; //導入方法依賴的package包/類
@Override
public void render () {
beginRender();
for (MapLayer layer : map.getLayers()) {
if (layer.isVisible()) {
if (layer instanceof TiledMapTileLayer) {
renderTileLayer((TiledMapTileLayer)layer);
} else {
renderObjects(layer);
}
}
}
endRender();
}
示例8: processSystem
import com.badlogic.gdx.maps.MapLayer; //導入方法依賴的package包/類
@Override
protected void processSystem() {
for (MapLayer layer : mapSystem.map.getLayers()) {
if (layer.isVisible()) {
if (layer.getName().equals("infront")) {
renderLayer((TiledMapTileLayer) layer);
}
}
}
}
示例9: processSystem
import com.badlogic.gdx.maps.MapLayer; //導入方法依賴的package包/類
@Override
protected void processSystem() {
for (MapLayer layer : mapSystem.map.getLayers()) {
if (layer.isVisible()) {
if (!layer.getName().equals("infront")) {
renderLayer((TiledMapTileLayer) layer);
}
}
}
}
示例10: processSystem
import com.badlogic.gdx.maps.MapLayer; //導入方法依賴的package包/類
@Override
protected void processSystem() {
renderer.setView(cameraSystem.camera);
for (MapLayer layer : mapSystem.map.getLayers()) {
if (layer.isVisible()) {
renderer.renderLayer((TiledMapTileLayer) layer);
}
}
}