2016-04-30 13:46:05 +02:00
|
|
|
#ifndef GUI
|
|
|
|
#define GUI
|
|
|
|
|
2016-06-16 14:59:44 +02:00
|
|
|
#include "..\C-Engine\CEngine.hpp"
|
2016-04-30 13:46:05 +02:00
|
|
|
|
|
|
|
class Script_GUI: public Script
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
void Start();
|
|
|
|
void Update();
|
2016-07-12 19:10:22 +02:00
|
|
|
void UpdateEverySecond();
|
2016-04-30 13:46:05 +02:00
|
|
|
|
|
|
|
void DelVie(int v);
|
2016-07-12 19:10:22 +02:00
|
|
|
int GetVie();
|
2016-04-30 13:46:05 +02:00
|
|
|
void AddScore(int v);
|
2016-07-19 15:40:58 +02:00
|
|
|
void EndStage();
|
2016-04-30 13:46:05 +02:00
|
|
|
|
|
|
|
void Lose();
|
|
|
|
void TryAgain();
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
int score;//Sc: 0
|
|
|
|
int vie;//Nb de vie
|
|
|
|
int restart;//Restart * 4
|
2016-07-12 19:10:22 +02:00
|
|
|
int timer;
|
2016-04-30 13:46:05 +02:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|