2019-07-18 15:11:06 +02:00
|
|
|
#ifndef FENG_H
|
|
|
|
#define FENG_H
|
2019-07-18 14:49:25 +02:00
|
|
|
|
|
|
|
#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 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
|