setup config to be one file
[physics.git] / src / config / config.cpp
similarity index 81%
rename from src/configs/paused_cfg.cpp
rename to src/config/config.cpp
index 4b2b001..ae569fa 100644 (file)
@@ -15,7 +15,7 @@
  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "paused_cfg.h"
+#include "config.h"
 #include "../input/inputManager.h"
 
 /// ***** Private Method Headers *****
 
 /// ***** Initializers/Cleaners *****
 
+void cfg::init()
+{
+    // TODO read in config files
+}
+void cfg::clean()
+{
+    // TODO save to config files?
+}
+
 /// ***** Public Methods *****
 
-bool CFG::pause()
+bool cfg::pause()
 {
     return input::wasPressed(SDLK_p);
 }
-bool CFG::unPause()
+bool cfg::unPause()
 {
     return input::wasPressed(SDLK_p);
 }
 
+bool cfg::endGame()
+{
+    return input::wasReleased(SDLK_ESCAPE);
+}
+
 /// ***** Private Methods *****