-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBoard.h
46 lines (36 loc) · 781 Bytes
/
Board.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
// Greg Kaiser
//
// CS290 with Prof. Francis
// 4D Tetris
//
// Board.h
// Last modified: April 17, 1996
//
// (C) 1996 Board of Trustees University of Illinois
#ifndef _BOARD_H_
#define _BOARD_H_
#include "Shared.h"
#include "Hyper.h"
#include "DList.h"
#include "FourD.h"
#define FILLED (char)(1)
#define EMPTY (char)(0)
class Board {
public:
Board();
~Board();
int GoodSpotShort(int *pos);
int GoodSpot(int *pos);
void EmptySpot(int *pos);
void FillSpot(int *pos);
int DonePiece(Hyper **newcubes, int numcubes);
void Drawit(int axes);
int CheckBoard(); // checks for filled cubes
void RemoveCube(int wcoord); // deletes the cube with the wcoord
private:
char ****boardarray;
DList<Hyper> *fallen;
FourD **bottom;
FourD **top;
};
#endif