Files
nchess-cpp/rook.h
2014-09-30 17:09:22 +03:00

23 lines
329 B
C++

#ifndef ROOK_H
#define ROOK_H
#include "piece.h"
class rook : public piece {
private:
bool castled;
public:
rook(int x, int y, int team)
{
castled = false;
this->x = x;
this->y = y;
this->team = team;
rank = ROOK;
}
virtual void move(int, int);
};
#endif // ROOK_H