From 88f5eb3447073fc6a87786da6a9b6b788f9bde66 Mon Sep 17 00:00:00 2001 From: Charles Date: Sat, 21 Mar 2020 03:56:19 +0100 Subject: Added basic game init with string and game display --- include/graphics.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/graphics.hpp') 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; }; -- cgit