This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
breakthroughpine64backup/Piece.h

24 lines
401 B
C
Raw Permalink Normal View History

2015-10-27 10:40:55 -05:00
#pragma once
using namespace std;
class Piece {
int x;
int y;
char type;
public:
Piece();
Piece(int r, int c);
Piece(int r, int c, char t);
void moveFwd();
void moveLeft();
void moveRight();
int getX(){ return x; }
void setX(int r){ x = r; }
int getY(){ return y; }
void setY(int c){ y = c; }
char getType(){ return type; }
void makeEmpty(){ type = '_'; }
};