-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlevelzero.h
More file actions
43 lines (37 loc) · 1.66 KB
/
levelzero.h
File metadata and controls
43 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
42
43
// ================================================================================
// =============== ===============
// =============== Square Swapper 5000 ===============
// =============== Andy Baek & William Lam ===============
// =============== *** Header of LevelZero class *** ===============
// =============== ===============
// ================================================================================
#ifndef __LEVELZERO_H__
#define __LEVELZERO_H__
#include <string>
#include "level.h"
#include "window.h"
class Square;
class Board;
class LevelZero : public Level {
// Field for the boardSize of the level
int boardSize; // 10
// Field for the score required to pass the level.
int targetScore;
public:
// This is the constructor for the Level Zero class, which should create the
// corresponding level object.
LevelZero(int seed, std::string configFile, bool graphical, bool bonus, int score);
// This is the destructor for the Level Zero class.
~LevelZero();
// This method is used in the Factory Method, which will create a new square based on
// the particular level that is being played on.
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 *currentBoard, 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