Typedefs | Variables
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. 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
 

Detailed Description

This file contains the definitions of the CwChessboardCode constants.

Definition in file CwChessboardCodes.h.

Typedef Documentation

Variable Documentation

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().


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