diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-11-02 18:38:53 -0400 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-11-02 18:38:53 -0400 |
| commit | a59fcafb2e81f3cb40ff320b106030e8fed4bd66 (patch) | |
| tree | 7e7396a9422814365a5f903a53d7391d3e7b22fd /titlestate.h | |
| parent | 45d6e635c880a7fae8711fba366519dd314d9faf (diff) | |
| download | mazeoflife-a59fcafb2e81f3cb40ff320b106030e8fed4bd66.tar.gz mazeoflife-a59fcafb2e81f3cb40ff320b106030e8fed4bd66.tar.bz2 mazeoflife-a59fcafb2e81f3cb40ff320b106030e8fed4bd66.zip | |
Diffstat (limited to 'titlestate.h')
| -rw-r--r-- | titlestate.h | 39 |
1 files changed, 31 insertions, 8 deletions
| diff --git a/titlestate.h b/titlestate.h index e989659..22c99f5 100644 --- a/titlestate.h +++ b/titlestate.h | |||
| @@ -1,23 +1,46 @@ | |||
| 1 | #include <SDL.h> | ||
| 2 | |||
| 3 | #include "state.h" | ||
| 4 | |||
| 5 | #ifndef TITLESTATE_H | 1 | #ifndef TITLESTATE_H |
| 6 | #define TITLESTATE_H | 2 | #define TITLESTATE_H |
| 7 | 3 | ||
| 4 | #include <memory> | ||
| 5 | |||
| 6 | #include "mazeoflife.h" | ||
| 7 | #include "sdl.h" | ||
| 8 | #include "state.h" | ||
| 9 | |||
| 8 | class TitleState : public State { | 10 | class TitleState : public State { |
| 9 | public: | 11 | public: |
| 10 | State* operator()(SDL_Window* window, SDL_Renderer* renderer); | 12 | explicit TitleState(Game& game); |
| 13 | |||
| 14 | std::unique_ptr<State> operator()(Game& game); | ||
| 15 | |||
| 16 | private: | ||
| 17 | texture_ptr background_; | ||
| 18 | texture_ptr pointer_; | ||
| 19 | int selection_ = 0; | ||
| 11 | }; | 20 | }; |
| 12 | 21 | ||
| 13 | class HowToPlayState : public State { | 22 | class HowToPlayState : public State { |
| 14 | public: | 23 | public: |
| 15 | State* operator()(SDL_Window* window, SDL_Renderer* renderer); | 24 | explicit HowToPlayState(Game& game); |
| 25 | |||
| 26 | std::unique_ptr<State> operator()(Game& game); | ||
| 27 | |||
| 28 | private: | ||
| 29 | texture_ptr background_; | ||
| 30 | texture_ptr pointer_; | ||
| 31 | int selection_ = 0; | ||
| 16 | }; | 32 | }; |
| 17 | 33 | ||
| 18 | class HowToPlayPageTwoState : public State { | 34 | class HowToPlayPageTwoState : public State { |
| 19 | public: | 35 | public: |
| 20 | State* operator()(SDL_Window* window, SDL_Renderer* renderer); | 36 | explicit HowToPlayPageTwoState(Game& game); |
| 37 | |||
| 38 | std::unique_ptr<State> operator()(Game& game); | ||
| 39 | |||
| 40 | private: | ||
| 41 | texture_ptr background_; | ||
| 42 | texture_ptr pointer_; | ||
| 43 | int selection_ = 0; | ||
| 21 | }; | 44 | }; |
| 22 | 45 | ||
| 23 | #endif \ No newline at end of file | 46 | #endif |
