-
Notifications
You must be signed in to change notification settings - Fork 0
/
SBlock.h
36 lines (32 loc) · 954 Bytes
/
SBlock.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
#ifndef _SBLOCK_H_
#define _SBLOCK_H_
#include <string>
#include <vector>
#include <iostream>
#include "block.h"
using namespace std;
class SBlock : public Block {
private:
int count;
int deLevel;
string blockType = "S";
vector<bool> coordFill{false, true, true, true, true, false};
vector<vector<int>> coords{vector<int>{0, -3}, vector<int>{1, -3}, vector<int>{2, -3}, vector<int>{0, -4}, vector<int>{1, -4}, vector<int>{2, -4}};
vector<vector<int>> coordsCpy = coords;
public:
SBlock(int deLevel);
void left() override;
void right() override;
void down() override;
int getLevel() override;
bool modifyCount() override;
void clockwise() override;
void changeContent(bool check) override;
void counterClockwise() override;
string getType() override;
vector<bool> &getCoordFill() override;
vector<vector<int>> &getCoords() override;
vector<vector<int>> &getCoordsCpy() override;
~SBlock() override;
};
#endif