X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?p=physics.git;a=blobdiff_plain;f=src%2Fconfig%2Fconfig.cpp;fp=src%2Fconfigs%2Fpaused_cfg.cpp;h=ae569fa3ced4543bede3cec1b1e9be56481db97f;hp=4b2b001bd2ac3fee8833ab8c862b729df61fc098;hb=b1d92c2f86c7da20ef22f9e064ff9b1a2d5ede4e;hpb=8f8b6693595f6e3be9f43369e898e12539892e88 diff --git a/src/configs/paused_cfg.cpp b/src/config/config.cpp similarity index 81% rename from src/configs/paused_cfg.cpp rename to src/config/config.cpp index 4b2b001..ae569fa 100644 --- a/src/configs/paused_cfg.cpp +++ b/src/config/config.cpp @@ -15,7 +15,7 @@ * along with this program. If not, see . */ -#include "paused_cfg.h" +#include "config.h" #include "../input/inputManager.h" /// ***** Private Method Headers ***** @@ -23,15 +23,29 @@ /// ***** 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 *****