-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlevel.cc
More file actions
30 lines (25 loc) · 1.14 KB
/
level.cc
File metadata and controls
30 lines (25 loc) · 1.14 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
// ================================================================================
// =============== ===============
// =============== Square Swapper 5000 ===============
// =============== Andy Baek & William Lam ===============
// =============== *** Implementation of Level class *** ===============
// =============== ===============
// ================================================================================
#include <iostream>
#include <cstdlib>
#include <string>
#include "level.h"
using namespace std;
// This is the constructor for the Level class, which should create the
// corresponding board objects.
Level::Level(int seed, string configFile, bool graphical, bool bonus) : seed(seed), graphical(graphical), bonus(bonus) {
//set seed
srand(seed);
// Set lockedsquares to empty
lockedSquares = 0;
// If from a file, set ifstream and set current file pos to 0
fileName = configFile;
fileInputPos = 0;
}
// This is the destructor for the level class.
Level::~Level( ) { }