-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDisplay.h
More file actions
46 lines (40 loc) · 1.18 KB
/
Display.h
File metadata and controls
46 lines (40 loc) · 1.18 KB
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
41
42
43
44
45
46
#ifndef __DISPLAY_H__
#define __DISPLAY_H__
struct ALLEGRO_FONT;
class MainMenu;
class UpgradeMenu;
#include "Interaction.h"
#include "ButtonManager.h"
#include <allegro5/allegro.h>
class Display : public Interaction
{
public:
static Display *GetInstance();
static void RemoveInstance();
void DrawUpgrade();
void NukeAnimation();
void RemoveWall(int xPos, int yPos);
void SetBackground();
void UpdateMiniMap(int centreX, int centreY);
void UpdateScreen();
void DrawMainMenu();
void Zoom(int centreX, int centreY);
bool UpdateMainMenuGUI();
bool UpdateUpgradeMenuGUI();
ALLEGRO_DISPLAY* GetDisplay() const;
private:
Display();
~Display();
static Display *instance;
void InitMainMenu(ALLEGRO_BITMAP *buffer);
void WallAnimation(int x1, int y1, int x2, int y2, int i);
ALLEGRO_TIMER* timer;
ALLEGRO_DISPLAY *screen;
ALLEGRO_BITMAP* miniMap;
ALLEGRO_BITMAP* background;
ALLEGRO_BITMAP* buffer;
UpgradeMenu* upgradeMenu;
MainMenu* mainMenu;
ALLEGRO_FONT* font;
};
#endif