{
}
+
+bool GameState::pushMe() const
+{
+ return false;
+}
+bool GameState::popMe() const
+{
+ return false;
+}
virtual void handleInput(bool=false) const = 0;
virtual void update(float, bool=false) const = 0;
virtual void draw(bool=false) const = 0;
+
+ virtual bool pushMe() const;
+ virtual bool popMe() const;
};
#endif // GAMESTATE_H
*/
#include "Paused.h"
+#include "../input/inputManager.h"
/// ***** Constructors/Destructors *****
{
// TODO
}
+
+bool Paused::pushMe() const
+{
+ if (input::isPressed(SDLK_p))
+ return true;
+
+ return false;
+}
+bool Paused::popMe() const
+{
+ if (input::isPressed(SDLK_p))
+ return true;
+
+ return false;
+}
virtual void handleInput(bool=false) const;
virtual void update(float, bool=false) const;
virtual void draw(bool=false) const;
+
+ virtual bool pushMe() const;
+ virtual bool popMe() const;
};
#endif // PAUSED_H