projects
/
physics.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
setup config to be one file
[physics.git]
/
src
/
config
/
config.cpp
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
(file)
--- a/
src/configs/paused_cfg.cpp
+++ b/
src/config/config.cpp
@@
-15,7
+15,7
@@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "
paused_cf
g.h"
+#include "
confi
g.h"
#include "../input/inputManager.h"
/// ***** Private Method Headers *****
#include "../input/inputManager.h"
/// ***** Private Method Headers *****
@@
-23,15
+23,29
@@
/// ***** Initializers/Cleaners *****
/// ***** Initializers/Cleaners *****
+void cfg::init()
+{
+ // TODO read in config files
+}
+void cfg::clean()
+{
+ // TODO save to config files?
+}
+
/// ***** Public Methods *****
/// ***** Public Methods *****
-bool
CFG
::pause()
+bool
cfg
::pause()
{
return input::wasPressed(SDLK_p);
}
{
return input::wasPressed(SDLK_p);
}
-bool
CFG
::unPause()
+bool
cfg
::unPause()
{
return input::wasPressed(SDLK_p);
}
{
return input::wasPressed(SDLK_p);
}
+bool cfg::endGame()
+{
+ return input::wasReleased(SDLK_ESCAPE);
+}
+
/// ***** Private Methods *****
/// ***** Private Methods *****