From fc2bfc98ea02e62bf36077c7a2fa38e2420f09dc Mon Sep 17 00:00:00 2001 From: Milan Garnier Date: Thu, 18 Jul 2019 14:49:25 +0200 Subject: [PATCH] =?UTF-8?q?Transf=C3=A9rer=20les=20fichiers=20vers=20'FxEn?= =?UTF-8?q?gine'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FxEngine/FxEngine.cpp | Bin 0 -> 1024 bytes FxEngine/FxEngine.h | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 FxEngine/FxEngine.cpp create mode 100644 FxEngine/FxEngine.h diff --git a/FxEngine/FxEngine.cpp b/FxEngine/FxEngine.cpp new file mode 100644 index 0000000000000000000000000000000000000000..06d7405020018ddf3cacee90fd4af10487da3d20 GIT binary patch literal 1024 ScmZQz7zLvtFd70QH3R?z00031 literal 0 HcmV?d00001 diff --git a/FxEngine/FxEngine.h b/FxEngine/FxEngine.h new file mode 100644 index 0000000..312face --- /dev/null +++ b/FxEngine/FxEngine.h @@ -0,0 +1,39 @@ +#ifndef ENG3D_H +#define ENG3D_H + +#define FE_State bool +#define FE_ACTIVE true +#define FE_PASSIVE false + +#include "math/pos.h" +#include "math/angle.h" + + +class FxEngine // regroupement des fonctions +{ +public: + static int* getPos(); + static void setPos(int* coords); + + static void newFrame(); // reloads coords + static int getChangeNumber(); + static void setState(FE_State state); + + static FE_Angle dh,dv; + static FE_Position real; +private: + static FE_Angle m_dh,m_dv; + static FE_Position m_virt; + + static FE_State m_state; + + static void move(); // appelé à intervalles réguliers + + +} + + + + + +#endif \ No newline at end of file