KirbyDreamLand/Script_Control.hpp

85 lines
1.3 KiB
C++
Raw Normal View History

2016-04-30 13:46:05 +02:00
#ifndef SCRIPTCONTROL
#define SCRIPTCONTROL
2016-06-16 14:59:44 +02:00
#include "..\C-Engine\CEngine.hpp"
2016-04-30 13:46:05 +02:00
#include "GUI.hpp"
//Kirby script
enum Contenu
{ Vide , Air , Plein};
class SSoufle: public Script
{
public:
void Update();
bool direction;
int time;
Script_GUI * Interface;
};
class SAspi: public Script
{
public:
void Update();
};
class SStar: public Script
{
public:
void Update();
bool direction;
Script_GUI * Interface;
};
class Control: public Script
{
public:
void Start();
void Update();
void Initialisation(Animation E, Animation S , Object * A , Script_GUI * G);
2016-06-16 14:59:44 +02:00
void Teleport( int x , int y , int level );
void GenerateMonster();
2016-04-30 13:46:05 +02:00
2016-07-12 19:10:22 +02:00
Animation AOurs;
Animation ABaby;
Animation AGhost;
Animation AOupa;
Animation * APiaf;
Animation * AChamp;
2016-04-30 13:46:05 +02:00
private:
bool isground; // Si Touche le sol True
bool isdo; // Si r<>alise une action True
bool isaspi;
2016-06-16 14:59:44 +02:00
int isfull;
2016-04-30 13:46:05 +02:00
int ishurt;
2016-07-19 15:40:58 +02:00
int isnhit;
2016-06-16 14:59:44 +02:00
bool direction; // Direction du personnage True = Gauche
int oldx;
int oldy;
2016-04-30 13:46:05 +02:00
Animation RenderSouffle;
Animation RenderEtoile;
Object * OAspi;
Script_GUI * Interface;
2016-07-19 15:40:58 +02:00
int couldown;
2016-07-12 19:10:22 +02:00
bool boss;
2016-04-30 13:46:05 +02:00
};
#endif // SCRIPTCONTROL