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
Loading
...@@ -41,9 +41,12 @@ public class RuntimeInfo { ...@@ -41,9 +41,12 @@ public class RuntimeInfo {
private boolean gameWon; private boolean gameWon;
private RuntimeInfo(){}; private RuntimeInfo() {
}
;
public static RuntimeInfo getInstance(){ public static RuntimeInfo getInstance() {
return runtimeInfoSingleton; return runtimeInfoSingleton;
} }
...@@ -52,19 +55,17 @@ public class RuntimeInfo { ...@@ -52,19 +55,17 @@ public class RuntimeInfo {
Parser.mapDataValid(mapData); Parser.mapDataValid(mapData);
Parser.mapNameValid(mapName); Parser.mapNameValid(mapName);
return new MapData(HashGenerator.hashAndHex(mapData), mapName, 18, 18, mapData); return new MapData(HashGenerator.hashAndHex(mapData), mapName, 18, 18, mapData);
} } catch (Exception e) {
catch(Exception e){
log.error(e); log.error(e);
throw new ParserException(e.getMessage()); 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 { try {
mapGame = mapSelected; mapGame = mapSelected;
mapDataGame = mapSelected.getMapData(); mapDataGame = mapSelected.getMapData();
} } catch (Exception e) {
catch(Exception e){
log.error(e); log.error(e);
} }
} }
...@@ -117,9 +118,6 @@ public class RuntimeInfo { ...@@ -117,9 +118,6 @@ public class RuntimeInfo {
this.gameplayObjects = gameplayObjects; this.gameplayObjects = gameplayObjects;
} }
public int gameTimeInHours(){
return persistenceInst.getStatistics().getGameTime() / 3600;
public String getMapDataGame() { public String getMapDataGame() {
return mapDataGame; return mapDataGame;
} }
......
...@@ -26,5 +26,4 @@ module gui { ...@@ -26,5 +26,4 @@ module gui {
exports de.hdm_stuttgart.battlearena.Controller.Utilities; exports de.hdm_stuttgart.battlearena.Controller.Utilities;
exports de.hdm_stuttgart.battlearena.Model.Multiplayer; exports de.hdm_stuttgart.battlearena.Model.Multiplayer;
exports de.hdm_stuttgart.battlearena.Model.Entity.GameplayObjects to javafx.fxml; 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