diff options
Diffstat (limited to 'src/menu_system.h')
| -rw-r--r-- | src/menu_system.h | 9 |
1 files changed, 9 insertions, 0 deletions
| 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 @@ | |||
| 5 | #include "interpolation.h" | 5 | #include "interpolation.h" |
| 6 | #include "menu.h" | 6 | #include "menu.h" |
| 7 | #include "system.h" | 7 | #include "system.h" |
| 8 | #include "timer.h" | ||
| 8 | 9 | ||
| 9 | class Game; | 10 | class Game; |
| 10 | 11 | ||
| @@ -31,6 +32,10 @@ public: | |||
| 31 | 32 | ||
| 32 | const std::vector<MenuItem>& getMenu() const { return menu_; } | 33 | const std::vector<MenuItem>& getMenu() const { return menu_; } |
| 33 | 34 | ||
| 35 | int getCursorPosition() const { return cursor_; } | ||
| 36 | |||
| 37 | int getCursorBob() const { return cursorBob_; } | ||
| 38 | |||
| 34 | private: | 39 | private: |
| 35 | 40 | ||
| 36 | enum class OpenState { | 41 | enum class OpenState { |
| @@ -43,6 +48,10 @@ private: | |||
| 43 | Interpolation pauseAnimation_; | 48 | Interpolation pauseAnimation_; |
| 44 | OpenState openState_ = OpenState::Closed; | 49 | OpenState openState_ = OpenState::Closed; |
| 45 | std::vector<MenuItem> menu_; | 50 | std::vector<MenuItem> menu_; |
| 51 | int cursor_ = 0; | ||
| 52 | int cursorBob_ = 0; | ||
| 53 | bool cursorBobDown_ = true; | ||
| 54 | Timer cursorBobTimer_ { 125 }; | ||
| 46 | }; | 55 | }; |
| 47 | 56 | ||
| 48 | #endif /* end of include guard: MENU_SYSTEM_H_205861EC */ | 57 | #endif /* end of include guard: MENU_SYSTEM_H_205861EC */ |
