-
Notifications
You must be signed in to change notification settings - Fork 0
/
GameCompleteScreen.h
40 lines (29 loc) · 947 Bytes
/
GameCompleteScreen.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef _GAMECOMPLETE_SCREEN_H
#define _GAMECOMPLETE_SCREEN_H
#include "Game.h"
#include <allegro5/allegro.h>
class Environment;
class Transition;
namespace Game {
class GameCompleteScreen : public Screen {
private:
ALLEGRO_BITMAP *title;
enum MYKEYS {KEY_UP, KEY_DOWN, KEY_LEFT, KEY_RIGHT};
Environment *environment;
bool jumpToGame;
Transition *entryTransition;
Transition *exitTransition;
Transition *curTransition;
public:
bool key[4];
GameCompleteScreen();
~GameCompleteScreen();
void start(Engine * engine);
void stop(Engine * engine);
void handleEvents(Engine * engine ,ALLEGRO_EVENT *event);
void update(Engine * engine ,double dts);
void render(Engine * engine ,double edt);
void flipStateBuffer();
};
}
#endif