1 #ifndef HLVARIANT__CHESS__PIECE_H
2 #define HLVARIANT__CHESS__PIECE_H
10 class TAGUA_EXPORT Piece
{
30 Piece(Color color
= INVALID_COLOR
, Type type
= INVALID_TYPE
);
33 virtual Color
color() const;
34 virtual Type
type() const;
36 virtual QString
colorName() const;
37 static QString
colorName(Color color
);
38 virtual QString
typeName() const;
39 static QString
typeName(Type type
);
40 virtual QString
name() const;
42 static Color
oppositeColor(Color color
);
44 virtual bool operator==(const Piece
& other
) const;
45 virtual bool operator!=(const Piece
& other
) const;
49 } // namespace HLVariant
51 #endif // HLVARIANT__CHESS__PIECE_H