32 bool MoveIterator::next_promotion(
void)
38 if (promotion_type ==
bishop)
40 else if (promotion_type ==
rook)
42 else if (promotion_type ==
knight)
48 bool MoveIterator::prev_promotion(
void)
53 if (promotion_type ==
queen)
55 else if (promotion_type ==
bishop)
57 else if (promotion_type ==
knight)
A namespace for all chess related objects that are not related to the GUI.
TypeData const bishop
A constant representing a bishop.
TypeData const queen
A constant representing a queen.
TypeData const rook
A constant representing a rook.
TypeData const knight
A constant representing a knight.
Move M_current_move
The actual move that is returned when dereferenced.
void set_promotion(Type promotion)
Set a different promotion type.
This file contains the declaration of class MoveIterator.
Type promotion_type(void) const
Return the promotion type. Returns empty if this isn't a promotion.