From 87fd445f70d578d2d7d75f1dab2f22142c3f673e Mon Sep 17 00:00:00 2001 From: Zach Jordan Date: Tue, 16 May 2023 08:52:37 -0400 Subject: json file reader and java library for json support --- src/gui/SettingsController.java | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) (limited to 'src/gui/SettingsController.java') 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() + { + + } + } -- cgit v1.2.3