-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconstructionBox.h
executable file
·85 lines (61 loc) · 1.86 KB
/
constructionBox.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/*****************************************************************
COPYRIGHT (C): 2013, All Rights Reserved.
PROJECT: TowerDefense
FILE: constructionBox.h
PURPOSE: The user interface for building towers, ending the current game, and starting the next wave
COMPILER: i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664)
TARGET: Mac OS X
PROGRAMMER: Helen Wauck
START DATE: 01/21/2013
*****************************************************************/
#ifndef CONSTRUCTIONBOX_H_
#define CONSTRUCTIONBOX_H_
#include "ccc_win.h"
#include "category.h"
#include "player.h"
#include "tower.h"
#include "drawConstants.h"
#include "drawFunctions.h"
#include "Square.h"
#include "button.h"
#include "towerButton.h"
class ConstructionBox {
public:
ConstructionBox();
ConstructionBox(vector<Tower> towers, double mapWidth, double mapHeight, std::string color, Point llcorner);
void createTitle();
void createIcons();
void createButtons();
void draw();
Button getReadyButton() const;
Button getCancelButton() const;
Button getEndGameButton() const;
double getBoxHeight() const;
double getBoxWidth() const;
vector<TowerButton> getTowerButtons() const;
vector<Tower> getTowers() const;
private:
vector<Tower> towers;
vector<TowerButton> towerButtons;
Button cancelTower;
Button ready;
Button endGame;
double BOX_WIDTH;
double BOX_HEIGHT;
/* REMARKS: the width of each towerButton in this ConstructionBox
*/
double ICON_WIDTH;
/* REMARKS: the height of each towerButton in this ConstructionBox
*/
double ICON_HEIGHT;
std::string title;
Point titlePos;
/* REMARKS: the number of tower options the player has for building towers
*/
int NUM_STATS;
vector<Point> iconTextPositions;
vector<Point> iconPositions;
std::string color;
Point llcorner;
};
#endif /* CONSTRUCTIONBOX_H_ */