X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=blobdiff_plain;f=src%2FGameStates%2FPaused.cpp;h=e539f5f75c84362012ab8fd0d68b347fbe9db7c7;hb=60addc0838dad313d5d76247fa2665c20fea7689;hp=72a4c4331c20373281820e90408b81d03d76a5df;hpb=617dcc71d9a71663f63fb56ffac2505b45bf91b9;p=physics.git diff --git a/src/GameStates/Paused.cpp b/src/GameStates/Paused.cpp index 72a4c43..e539f5f 100644 --- a/src/GameStates/Paused.cpp +++ b/src/GameStates/Paused.cpp @@ -1,5 +1,22 @@ -#include "Paused.h" +/* + * Copyright (C) 2008 Patrik Gornicz, Gornicz_P (at) hotmail (dot) com. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +#include "Paused.h" +#include "config/config.h" /// ***** Constructors/Destructors ***** @@ -14,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(); +}