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

fix: missing "}" and wrong export statement

parent 2946682a
No related branches found
No related tags found
5 merge requests!74V1,!73Initial commit,!71Merge DataBase into Development,!27Player can now place bombs that have a explosion radius that dont go through the wall.,!24Player can now place bombs that have a explosion radius that dont go through the wall.
......@@ -41,9 +41,12 @@ public class RuntimeInfo {
private boolean gameWon;
private RuntimeInfo(){};
private RuntimeInfo() {
}
;
public static RuntimeInfo getInstance(){
public static RuntimeInfo getInstance() {
return runtimeInfoSingleton;
}
......@@ -52,19 +55,17 @@ public class RuntimeInfo {
Parser.mapDataValid(mapData);
Parser.mapNameValid(mapName);
return new MapData(HashGenerator.hashAndHex(mapData), mapName, 18, 18, mapData);
}
catch(Exception e){
} catch (Exception e) {
log.error(e);
throw new ParserException(e.getMessage());
}
}
public void setGameMap(MapData mapSelected){ //Create Game Scene Dropdown list directly gives reference to selected map
public void setGameMap(MapData mapSelected) { //Create Game Scene Dropdown list directly gives reference to selected map
try {
mapGame = mapSelected;
mapDataGame = mapSelected.getMapData();
}
catch(Exception e){
} catch (Exception e) {
log.error(e);
}
}
......@@ -117,9 +118,6 @@ public class RuntimeInfo {
this.gameplayObjects = gameplayObjects;
}
public int gameTimeInHours(){
return persistenceInst.getStatistics().getGameTime() / 3600;
public String getMapDataGame() {
return mapDataGame;
}
......
......@@ -26,5 +26,4 @@ module gui {
exports de.hdm_stuttgart.battlearena.Controller.Utilities;
exports de.hdm_stuttgart.battlearena.Model.Multiplayer;
exports de.hdm_stuttgart.battlearena.Model.Entity.GameplayObjects to javafx.fxml;
opens de.hdm_stuttgart.battlearena.Controller.Utilities to javafx.fxml;
}
\ No newline at end of file
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