blob: d52e2337fb2a96fafae95f61d9fd4cb072988076 (
plain)
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
|
#ifndef _PIECE_H_
#define _PIECE_H_
#include <cstdio>
#include <iostream>
#include <string>
#include <vector>
using std::string;
using std::cout;
using std::endl;
using std::vector;
typedef struct
{
int row;
int col;
} POINT;
class Piece
{
private:
string name;
int row;
int col;
int w;
int h;
char dir;
vector<POINT> haveBeen;
public:
Piece(void);
Piece(string, int = 0, int = 0, int = 0, int = 0, char = 0);
string getName(void);
int getRow(void);
int getCol(void);
int getW(void);
int getH(void);
char getDir(void);
void markPos(void);
vector<POINT> *gethaveBeen(void);
void setRow(int);
void setCol(int);
};
#endif
|