X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=blobdiff_plain;f=src%2FGameStates%2FPaused.cpp;h=e539f5f75c84362012ab8fd0d68b347fbe9db7c7;hb=60addc0838dad313d5d76247fa2665c20fea7689;hp=31cbb7a28d6afc5238d3334ebcd404ec6f019400;hpb=e68f847b245153427266841ae724d602ca434c29;p=physics.git diff --git a/src/GameStates/Paused.cpp b/src/GameStates/Paused.cpp index 31cbb7a..e539f5f 100644 --- a/src/GameStates/Paused.cpp +++ b/src/GameStates/Paused.cpp @@ -16,7 +16,7 @@ */ #include "Paused.h" - +#include "config/config.h" /// ***** Constructors/Destructors ***** @@ -31,15 +31,24 @@ Paused::~Paused() /// ***** Public Class Methods ***** -void Paused::handleInput(bool on_top) const +void Paused::handleInput(bool /*on_top*/) const { // TODO } -void Paused::update(float time_step, bool on_top) const +void Paused::update(float /*time_step*/, bool /*on_top*/) const { } -void Paused::draw(bool on_top) const +void Paused::draw(bool /*on_top*/) const { // TODO } + +bool Paused::pushMe() const +{ + return cfg::paused(); +} +bool Paused::popMe() const +{ + return !cfg::paused(); +}