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

20 lines
289 B
C++

#ifndef KNIGHT_H
#define KNIGHT_H
#include "piece.h"
class knight : public piece {
public:
knight(int x, int y, int team)
{
this->x = x;
this->y = y;
this->team = team;
rank = KNIGHT;
}
virtual void move(int, int);
};
#endif // KNIGHT_H