Initial commit
This commit is contained in:
28
pawn.h
Normal file
28
pawn.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef PAWN_H
|
||||
#define PAWN_H
|
||||
|
||||
#include "piece.h"
|
||||
|
||||
class pawn : public piece {
|
||||
private:
|
||||
bool first_move_flag;
|
||||
|
||||
public:
|
||||
pawn(int x, int y, int team)
|
||||
{
|
||||
this->x = x;
|
||||
this->y = y;
|
||||
this->team = team;
|
||||
rank = PAWN;
|
||||
first_move_flag = true;
|
||||
}
|
||||
|
||||
virtual void move(int, int);
|
||||
|
||||
inline bool first_move()
|
||||
{
|
||||
return first_move_flag;
|
||||
}
|
||||
};
|
||||
|
||||
#endif // PAWN_H
|
||||
Reference in New Issue
Block a user