Initial commit
This commit is contained in:
22
rook.h
Normal file
22
rook.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user