23 lines
329 B
C++
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
|