-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathleveltwo.h
More file actions
41 lines (37 loc) · 1.66 KB
/
leveltwo.h
File metadata and controls
41 lines (37 loc) · 1.66 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
// ================================================================================
// =============== ===============
// =============== Square Swapper 5000 ===============
// =============== Andy Baek & William Lam ===============
// =============== *** Header of LevelTwo class *** ===============
// =============== ===============
// ================================================================================
#ifndef __LEVELTWO_H__
#define __LEVELTWO_H__
#include <string>
#include <vector>
#include "level.h"
#include "window.h"
class Board;
class LevelTwo : public Level {
// Field for the boardSize of levelTwo. Set to 10.
int boardSize;
// Field for the score needed to move to the next level.
int targetScore;
public :
// This is the constructor for the Level Two class, which should create the
// corresponding board object.
LevelTwo(int seed, std::string configFile, bool graphical, bool bonus, int score);
// This is the destructor for the level Two class.
~LevelTwo( );
// This method is used to the Factory Method, which will create a new square
// based on the level two parameters, that is all squares are random.
Square *createSquare( );
// This method is used in conjunction with the createSquare factory, to set
// each cell in the board to be a particular board piece.
Square ***initializeBoard( Board *, Xwindow *w );
// This is a getter for the targetScore needed to pass the level.
int getTargetScore( );
// This is a getter for the boardSize.
int getBoardSize( );
};
#endif