-
Notifications
You must be signed in to change notification settings - Fork 0
/
ClassicModeGame.h
35 lines (26 loc) · 1.09 KB
/
ClassicModeGame.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
// a. Michael Bertagna
// b. 2353491
// c. [email protected]
// d. CPSC 350-01
// e. Assignment 3
/* ClassicModeGame.h is a header file which lays out the elements of the ClassicModeGame derived class (base class: Game). */
#ifndef CLASSICMODEGAME_H
#define CLASSICMODEGAME_H
#include <iostream>
#include "Game.h"
using namespace std;
class ClassicModeGame : public Game{
protected:
public:
//overloaded constructor: specify occupancy via map file
ClassicModeGame(int height, int width, string gridString) : Game(height, width, gridString){}
//overloaded constructor: random occupancy
ClassicModeGame(int height, int width, double density) : Game(height, width, density){}
// checks number of neighbors above a cell in the grid
int checkAboveNeighbors (int row, int col) override;
// checks number of neighbors below a cell in the grid
int checkBelowNeighbors(int row, int col) override;
// checks number of neighbors to the side of a cell in the grid
int checkSideNeighbors(int row, int col) override;
};
#endif