Initial commit
This commit is contained in:
26
king.h
Normal file
26
king.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef KING_H
|
||||
#define KING_H
|
||||
|
||||
#include "piece.h"
|
||||
|
||||
class king : public piece {
|
||||
private:
|
||||
bool castled_left;
|
||||
bool castled_right;
|
||||
|
||||
public:
|
||||
king(int x, int y, int team)
|
||||
{
|
||||
this->x = x;
|
||||
this->y = y;
|
||||
this->team = team;
|
||||
rank = KING;
|
||||
castled_left = false;
|
||||
castled_right = false;
|
||||
}
|
||||
|
||||
virtual void move(int, int);
|
||||
bool can_castle(int);
|
||||
};
|
||||
|
||||
#endif // KING_H
|
||||
Reference in New Issue
Block a user