-
Notifications
You must be signed in to change notification settings - Fork 0
/
DisplayScreen.h
48 lines (41 loc) · 963 Bytes
/
DisplayScreen.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
41
42
43
44
45
46
47
48
#pragma once
#include "Globals.h"
#include "MapElement.h"
#include "Button.h"
#include <allegro5/allegro_primitives.h>
#include <allegro5/allegro_font.h>
#include <allegro5/allegro_ttf.h>
class MapElement;
class DisplayScreen
{
private:
int xPos;
int yPos;
float damage;
float cooldown;
float range;
float slow;
bool allowUpgrade;
bool drawRange;
bool redLive;
bool greenLive;
bool blueLive;
bool goodToGo;
bool loadedFont;
MapElement grid;
ALLEGRO_FONT *font15;
ALLEGRO_FONT *font11;
public:
DisplayScreen();
void SetGrid(MapElement *grid); //rename to fit better
void SetGrid(int tower, MapElement grid); //rename this to fit better
void DrawBackground();
void DrawDisplay(Player &player);
void ClearDisplay();
void Destroy();
void LoadFont(ALLEGRO_FONT **font15, ALLEGRO_FONT **font11);
void CheckUpgradeValid(MapElement *grid);
UpgradeRedButton upgradeRed;
UpgradeGreenButton upgradeGreen;
UpgradeBlueButton upgradeBlue;
};