CwChessboardCodes.h File Reference

This file contains the definitions of the CwChessboardCode constants. More...

#include <stdint.h>
Include dependency graph for CwChessboardCodes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef uint16_t CwChessboardCode
 A code to specify a chess piece.

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

Detailed Description

This file contains the definitions of the CwChessboardCode constants.

Definition in file CwChessboardCodes.h.


Typedef Documentation


Variable Documentation

A black bishop.

Definition at line 70 of file CwChessboardCodes.h.

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.

A black knight.

Definition at line 64 of file CwChessboardCodes.h.

A black pawn.

Definition at line 52 of file CwChessboardCodes.h.

A black queen.

Definition at line 76 of file CwChessboardCodes.h.

A black rook.

Definition at line 58 of file CwChessboardCodes.h.

Referenced by cwmm::ChessPositionWidget::execute().

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(), and cwmm::ChessPositionWidget::execute().

A white bishop.

Definition at line 73 of file CwChessboardCodes.h.

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.

A white knight.

Definition at line 67 of file CwChessboardCodes.h.

A white pawn.

Definition at line 55 of file CwChessboardCodes.h.

A white queen.

Definition at line 79 of file CwChessboardCodes.h.

A white rook.

Definition at line 61 of file CwChessboardCodes.h.

Referenced by cwmm::ChessPositionWidget::execute().


Copyright © 2006 - 2010 Carlo Wood.  All rights reserved.