From 18fbe2b88e1f1cf35135d742a37dd1e195ab4952 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matt=C3=A9o=20Delabre?= Date: Tue, 8 Mar 2016 19:51:24 +0100 Subject: [PATCH] =?UTF-8?q?Externalisation=20de=20l'=C3=A9tat=20du=20moteu?= =?UTF-8?q?r=20pour=20la=20M=C3=A0J=20des=20objets?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- state.hpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 state.hpp diff --git a/state.hpp b/state.hpp new file mode 100644 index 0000000..91de300 --- /dev/null +++ b/state.hpp @@ -0,0 +1,19 @@ +#ifndef PTF_STATE_HPP +#define PTF_STATE_HPP + +#include +#include + +/** + * Structure qui retient l'état actuel du moteur + * Cette structure est passée aux objets pour qu'ils se + * mettent à jour en fonction de cet état + */ +struct State { + std::vector> objects; + bool goLeftKey; + bool goRightKey; + float delta; +}; + +#endif