1 #include <core/piece.h>
7 QString
Type::name() const {
8 return m_unpromoted_type
->name();
11 bool Type::canMove(const Piece
& piece
, const Piece
&,
12 Move
& move
, const IState
* state
) const {
14 return m_promoted_type
->canMove(piece
, Piece(), move
, state
);
16 return m_unpromoted_type
->canMove(piece
, Piece(), move
, state
);
19 void Type::setPromoted(bool promoted_
)
24 int Type::index() const {
25 return m_unpromoted_type
->index();