-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPiece.h
55 lines (46 loc) · 1.84 KB
/
Piece.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
51
52
53
54
55
#ifndef PIECE_H
#define PIECE_H
// ****************************
// Class Name: Piece
//
// Description:
//
// ****************************
class Piece {
private:
//variables for the pieceId and character representing the piece
int pieceId;
char pieceIcon;
public:
//default constructor
Piece();
//overloaded constructor: takes in the piece id and character
Piece(int pieceId, char pieceIcon);
//*************************************************************
int getPieceId()const {return pieceId;}
//Summary: Gets the pieceId for the piece.
//Precondition: None
//Postcondition: Returns pieceId.
//*************************************************************
//*************************************************************
char getPieceIcon()const {return pieceIcon;}
//Summary: Gets the pieceIcon for the piece.
//Precondition: None
//Postcondition: Returns pieceIcon.
//*************************************************************
//*************************************************************
void setPieceId(int pieceId);
//Summary: Sets the pieceId.
//Precondition: PieceId must be 100, 500, 300, 305, 200, or 900
// for the pieces.
//Postcondition: Sets pieceId to pieceId.
//*************************************************************
//*************************************************************
void setPieceIcon(char pieceIcon);
//Summary: Sets the pieceIcon.
//Precondition: PieceIcon must be character representing the
// the icon.
//Postcondition: Sets pieceIcon to pieceIcon.
//*************************************************************
};
#endif // PIECE_H