From f839e07d4d2e94070129129c669072145235cf4f Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 13 Mar 2021 09:29:47 -0500 Subject: Added cursor to pause menu #7 --- src/menu_system.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/menu_system.h') diff --git a/src/menu_system.h b/src/menu_system.h index 56f84d5..9cbd1f0 100644 --- a/src/menu_system.h +++ b/src/menu_system.h @@ -5,6 +5,7 @@ #include "interpolation.h" #include "menu.h" #include "system.h" +#include "timer.h" class Game; @@ -31,6 +32,10 @@ public: const std::vector& getMenu() const { return menu_; } + int getCursorPosition() const { return cursor_; } + + int getCursorBob() const { return cursorBob_; } + private: enum class OpenState { @@ -43,6 +48,10 @@ private: Interpolation pauseAnimation_; OpenState openState_ = OpenState::Closed; std::vector menu_; + int cursor_ = 0; + int cursorBob_ = 0; + bool cursorBobDown_ = true; + Timer cursorBobTimer_ { 125 }; }; #endif /* end of include guard: MENU_SYSTEM_H_205861EC */ -- cgit 1.4.1