diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-03-21 03:56:19 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-03-21 03:56:19 +0100 |
| commit | 88f5eb3447073fc6a87786da6a9b6b788f9bde66 (patch) | |
| tree | 2fb30f59e539b08cb53c4b7d7336238acc4ca1ed /include/graphics.hpp | |
| parent | 166c06083212a5657fcaf03328bf530f9eb8b0d8 (diff) | |
| download | mario_sokoban-88f5eb3447073fc6a87786da6a9b6b788f9bde66.tar.gz mario_sokoban-88f5eb3447073fc6a87786da6a9b6b788f9bde66.tar.bz2 mario_sokoban-88f5eb3447073fc6a87786da6a9b6b788f9bde66.zip | |
Added basic game init with string and game display
Diffstat (limited to 'include/graphics.hpp')
| -rw-r--r-- | include/graphics.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/graphics.hpp b/include/graphics.hpp index ef0c813..d51b47a 100644 --- a/include/graphics.hpp +++ b/include/graphics.hpp @@ -8,14 +8,14 @@ class Graphics { - public: +public: Graphics(Game &game, std::string title, int width, int height); ~Graphics(); void update(); bool isRunning() const; - private: +private: bool m_running; Game &m_game; std::string m_title; @@ -25,6 +25,7 @@ class Graphics SDL_Window *m_window; void drawGame(); + void drawCell(Game::Cell cell, int y, int x); void handleEvent(); void error() const; }; |
