aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/gui/JsonReader.java7
-rw-r--r--src/gui/JsonStructure.java5
-rw-r--r--src/gui/JsonWriter.java3
-rw-r--r--src/gui/SettingsController.java30
4 files changed, 40 insertions, 5 deletions
diff --git a/src/gui/JsonReader.java b/src/gui/JsonReader.java
index b1da06f..737e999 100644
--- a/src/gui/JsonReader.java
+++ b/src/gui/JsonReader.java
@@ -1,5 +1,10 @@
package gui;
-public interface JsonReader {
+import java.io.Closeable;
+public interface JsonReader extends Closeable
+{
+ public void close();
+ public JsonStructure read();
+
}
diff --git a/src/gui/JsonStructure.java b/src/gui/JsonStructure.java
index 1ea2fa1..208e79c 100644
--- a/src/gui/JsonStructure.java
+++ b/src/gui/JsonStructure.java
@@ -1,5 +1,8 @@
package gui;
-public interface JsonStructure {
+
+
+public interface JsonStructure extends JsonValue
+{
}
diff --git a/src/gui/JsonWriter.java b/src/gui/JsonWriter.java
index 04fae8e..2b1ab72 100644
--- a/src/gui/JsonWriter.java
+++ b/src/gui/JsonWriter.java
@@ -1,5 +1,6 @@
package gui;
-public interface JsonWriter {
+public interface JsonWriter
+{
}
diff --git a/src/gui/SettingsController.java b/src/gui/SettingsController.java
index 8898dc3..965ac61 100644
--- a/src/gui/SettingsController.java
+++ b/src/gui/SettingsController.java
@@ -1,5 +1,31 @@
package gui;
+import org.json.simple.JSONObject;
+import java.util.Map;
+import java.util.HashMap;
-public class SettingsController {
-
+public class SettingsController
+{
+ private int effectsVol;
+ private int musicVol;
+ private boolean fullscreen;
+
+ public SettingsController()
+ {
+ readFile();
+ }
+
+ public void saveAndWrite(int newEffVol, int newMusVol, boolean isFull)
+ {
+ effectsVol = newEffVol;
+ musicVol = newMusVol;
+ fullscreen = isFull;
+
+
+ }
+
+ public void readFile()
+ {
+
+ }
+
}