This file contains the definitions of the CwChessboardCode constants. More...
#include <stdint.h>
Go to the source code of this file.
Typedefs | |
typedef uint16_t | CwChessboardCode |
A code to specify a chess piece. More... | |
Variables | |
CwChessboardCode const | empty_square = 0 |
CwChessboardCode const | black_pawn = 2 |
CwChessboardCode const | white_pawn = 3 |
CwChessboardCode const | black_rook = 4 |
CwChessboardCode const | white_rook = 5 |
CwChessboardCode const | black_knight = 6 |
CwChessboardCode const | white_knight = 7 |
CwChessboardCode const | black_bishop = 8 |
CwChessboardCode const | white_bishop = 9 |
CwChessboardCode const | black_queen = 10 |
CwChessboardCode const | white_queen = 11 |
CwChessboardCode const | black_king = 12 |
CwChessboardCode const | white_king = 13 |
This file contains the definitions of the CwChessboardCode constants.
Definition in file CwChessboardCodes.h.
A code to specify a chess piece.
One of the following constants: empty_square, black_pawn, white_pawn, black_rook, white_rook, black_knight, white_knight, black_bishop, white_bishop, black_queen, white_queen, black_king or white_king.
Definition at line 40 of file CwChessboardCodes.h.
CwChessboardCode const black_bishop = 8 |
A black bishop.
Definition at line 70 of file CwChessboardCodes.h.
CwChessboardCode const black_king = 12 |
A black king. Since the CwChessboard widget does not do any checking, it is possible to display more than one king.
Definition at line 86 of file CwChessboardCodes.h.
CwChessboardCode const black_knight = 6 |
A black knight.
Definition at line 64 of file CwChessboardCodes.h.
CwChessboardCode const black_pawn = 2 |
A black pawn.
Definition at line 52 of file CwChessboardCodes.h.
CwChessboardCode const black_queen = 10 |
A black queen.
Definition at line 76 of file CwChessboardCodes.h.
CwChessboardCode const black_rook = 4 |
A black rook.
Definition at line 58 of file CwChessboardCodes.h.
CwChessboardCode const empty_square = 0 |
An empty square. The value 1
will also result in an empty square.
Definition at line 49 of file CwChessboardCodes.h.
Referenced by cw_chessboard_add_floating_piece(), cw_chessboard_remove_floating_piece(), cwmm::ChessPositionWidget::execute(), and cwmm::ChessPositionWidget::load_FEN().
CwChessboardCode const white_bishop = 9 |
A white bishop.
Definition at line 73 of file CwChessboardCodes.h.
Referenced by cwmm::ChessboardWidget::ChessboardWidget().
CwChessboardCode const white_king = 13 |
A white king. Since the CwChessboard widget does not do any checking, it is possible to display more than one king.
Definition at line 93 of file CwChessboardCodes.h.
Referenced by cwmm::ChessboardWidget::ChessboardWidget().
CwChessboardCode const white_knight = 7 |
A white knight.
Definition at line 67 of file CwChessboardCodes.h.
Referenced by cwmm::ChessboardWidget::ChessboardWidget().
CwChessboardCode const white_pawn = 3 |
A white pawn.
Definition at line 55 of file CwChessboardCodes.h.
Referenced by cwmm::ChessboardWidget::ChessboardWidget().
CwChessboardCode const white_queen = 11 |
A white queen.
Definition at line 79 of file CwChessboardCodes.h.
Referenced by cwmm::ChessboardWidget::ChessboardWidget().
CwChessboardCode const white_rook = 5 |
A white rook.
Definition at line 61 of file CwChessboardCodes.h.
Referenced by cwmm::ChessboardWidget::ChessboardWidget().