Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.59 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. #ifndef CHESSPIECECLASS_H_
  4. #define CHESSPIECECLASS_H_
  5. class ChessPiece
  6. {
  7. private:
  8.     int side;
  9.     int y;
  10.     int x;
  11.     int type;
  12. public:
  13.     int get_type();
  14.     int get_y();
  15.     int get_x();
  16.     void move();
  17.     ChessPiece(int side, int y, int x, int type);
  18.     ~ChessPiece();
  19. };
  20. #endif
  21.  
  22. #include "ChessPieceClass.h"
  23.  
  24. int ChessPiece::get_type()
  25. {
  26.     return type;
  27. }
  28. int ChessPiece::get_y()
  29. {
  30.     return y;
  31. }
  32. int ChessPiece::get_x()
  33. {
  34.     return x;
  35. }
  36. void ChessPiece::move()
  37. {
  38. }
  39. ChessPiece(int side, int y, int x, int type)
  40. {
  41.     side = side;
  42.     y = y;
  43.     x = x;
  44.     type = type;
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement