Skip to content
Snippets Groups Projects
Commit 9992e998 authored by Scherbaum Maximilian's avatar Scherbaum Maximilian
Browse files

add: stoneExampleTexture.png, fix: spelling issue in TileFactory.java

parent 8b0b052d
No related branches found
No related tags found
4 merge requests!74V1,!73Initial commit,!71Merge DataBase into Development,!1Merge: map into development
package de.hdm_stuttgart.battlearena.Model.Map;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
public class TileFactorie {
private static final Logger log = LogManager.getLogger(TileFactorie.class);
}
package de.hdm_stuttgart.battlearena.Model.Map;
import javafx.scene.image.Image;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
public class TileFactory {
private static final Logger log = LogManager.getLogger(TileFactory.class);
public static ITile createTile(TileType tileType, Image tileSprite) {
if (tileType == TileType.WALKABLE) {
log.debug("Tile with type: " + tileType + " created.");
return new BackgroundTile(tileSprite, true);
} else if (tileType == TileType.NON_WALKABLE) {
log.debug("Tile with type: " + tileType + " created.");
return new BackgroundTile(tileSprite, false);
}
log.error("TileType: " + tileType + " not supported!");
throw new IllegalArgumentException("TileType: " + tileType + " not supported!");
}
}
\ No newline at end of file
src/main/resources/textures/map/stoneExampleTexture.png

3.03 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment