From e45939344e8c15bdfa615c397cc03827c56ef822 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matt=C3=A9o=20Delabre?= Date: Wed, 30 Mar 2016 14:01:41 +0200 Subject: [PATCH] =?UTF-8?q?Passage=20du=20gestionnaire=20en=20param=C3=A8t?= =?UTF-8?q?re=20du=20constructeur=20de=20la=20vue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/view.hpp | 6 +++++- src/view.cpp | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/include/view.hpp b/include/view.hpp index e6e9d40..ba2fd6c 100644 --- a/include/view.hpp +++ b/include/view.hpp @@ -10,14 +10,18 @@ class Object; * Classe abstraite pour les vues */ class View { +protected: + Manager& manager; + public: + View(Manager& manager); virtual ~View(); /** * Demande le passage à la frame suivante sur * cette vue */ - virtual void frame(Manager& manager) = 0; + virtual void frame() = 0; }; #endif diff --git a/src/view.cpp b/src/view.cpp index ef2a8f7..238328c 100644 --- a/src/view.cpp +++ b/src/view.cpp @@ -1,3 +1,4 @@ #include "view.hpp" +View::View(Manager& manager) : manager(manager) {} View::~View() {}