Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #ifndef CHESSPIECECLASS_H_
- #define CHESSPIECECLASS_H_
- class ChessPiece
- {
- private:
- int side;
- int y;
- int x;
- int type;
- public:
- int get_type();
- int get_y();
- int get_x();
- void move();
- ChessPiece(int side, int y, int x, int type);
- ~ChessPiece();
- };
- #endif
- #include "ChessPieceClass.h"
- int ChessPiece::get_type()
- {
- return type;
- }
- int ChessPiece::get_y()
- {
- return y;
- }
- int ChessPiece::get_x()
- {
- return x;
- }
- void ChessPiece::move()
- {
- }
- ChessPiece(int side, int y, int x, int type)
- {
- side = side;
- y = y;
- x = x;
- type = type;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement