-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWell.h
50 lines (48 loc) · 2.16 KB
/
Well.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
47
48
49
50
#ifndef WELL_INCLUDED
#define WELL_INCLUDED
#include <vector>
#include<string>
using namespace std;
class Screen;
class Piecetype;
class Well
{
public:
Well();
Well(int x, int y);
void vaporBombExplode(Screen & screen, int wellWidth, int wellHeight, Piecetype & piece);
void foamBombExplode(Screen & screen, int wellWidth, int wellHeight, Piecetype & piece);
void foam(Screen & screen, int wellWidth, int wellHeight, int x_coordinate, int y_coordinate, int x0, int y0, string pieceString);
void placeFoam(int x, int y, string s);
void display(Screen& screen, int x, int y);
void setWalls(int x, int y);
void placePiece(int x, int y, string s);
bool canMoveRight(int wellWidth, int wellHeight, Piecetype & piece);
bool canMoveLeft(int wellWidth, int wellHeight, Piecetype & piece);
void clearLine(Screen& screen, int wellWidth, int wellHeight);
void clearWell(Screen& screen, int wellWidth, int wellHeight);
void startPiece(Screen& screen, int x , int y, Piecetype& piece); //drops one
void clearPreviousFalling(int x, int y); //want the dimensions
void stringToBox(int boundingBoxSetter[4][4], string s);
bool canPlacePiece(int x, int y, string s); //coordinates....
bool canStartPiece(Screen& screen, int x, int y, Piecetype& piece);
void moveAllDown(Screen& screen, int column, int wellHeight, int heightToStart);
bool canMoveDown(int wellWidth, int wellHeight, Piecetype& piece);
bool canRotate(int wellWidth, int wellHeight, Piecetype & piece);
void moveToBottom(Screen & screen, int wellWidth, int wellHeight, Piecetype & piece);
void moveDown(Screen& screen, int wellWidth, int wellHeight, Piecetype& piece);
void moveRight(Screen& screen, int wellWidth, int wellHeight, Piecetype & piece);
void rotate(Screen & screen, int wellWidth, int wellHeight, Piecetype & piece);
void moveLeft(Screen& screen, int wellWidth, int wellHeight, Piecetype & piece);
void makeMoney(int width, int height);
void setRowsLeft(int rowstimeslevels);
void decrementRowsLeft();
int getRowsLeft();
void addScore(int addThis);
int getScore();
private:
vector<vector<char> > myWell;
int rowsLeft;
int m_score;
};
#endif // WELL_INCLUDED