From 773a703c76694be332684c768500a2e7ac2ef7a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matt=C3=A9o=20Delabre?= Date: Tue, 8 Mar 2016 22:50:14 +0100 Subject: [PATCH] =?UTF-8?q?Pr=C3=A9-d=C3=A9claration=20de=20Object=20dans?= =?UTF-8?q?=20State=20pour=20=C3=A9viter=20l'inclusion=20circulaire?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- state.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/state.hpp b/state.hpp index 91de300..d02df4a 100644 --- a/state.hpp +++ b/state.hpp @@ -2,7 +2,11 @@ #define PTF_STATE_HPP #include -#include + +// pré-déclaration de Object pour éviter +// les erreurs de compilation. Object +// est défini dans object.hpp +class Object; /** * Structure qui retient l'état actuel du moteur @@ -10,7 +14,7 @@ * mettent à jour en fonction de cet état */ struct State { - std::vector> objects; + std::vector objects; bool goLeftKey; bool goRightKey; float delta;