Classes | Namespaces | Typedefs | Functions | Variables
Code.h File Reference

This file contains the declaration of class Code. More...

#include <stdint.h>
#include "Color.h"
#include "Type.h"
#include "Direction.h"
Include dependency graph for Code.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cwchess::CodeData
 The POD base type of class Code. More...
 
class  cwchess::Code
 A chess piece type including color. More...
 

Namespaces

 cwchess
 A namespace for all chess related objects that are not related to the GUI.
 

Typedefs

typedef uint16_t cwchess::CwChessboardCode
 

Functions

bool cwchess::operator== (CodeData c1, CodeData c2)
 
bool cwchess::operator!= (CodeData c1, CodeData c2)
 

Variables

CodeData const cwchess::white_pawn = { white_bits | pawn_bits }
 A constant representing a white pawn.
 
CodeData const cwchess::white_rook = { white_bits | rook_bits }
 A constant representing a white rook.
 
CodeData const cwchess::white_knight = { white_bits | knight_bits }
 A constant representing a white knight.
 
CodeData const cwchess::white_bishop = { white_bits | bishop_bits }
 A constant representing a white bishop.
 
CodeData const cwchess::white_queen = { white_bits | queen_bits }
 A constant representing a white queen.
 
CodeData const cwchess::white_king = { white_bits | king_bits }
 A constant representing a white king.
 
CodeData const cwchess::black_pawn = { black_bits | pawn_bits }
 A constant representing a black pawn.
 
CodeData const cwchess::black_rook = { black_bits | rook_bits }
 A constant representing a black rook;.
 
CodeData const cwchess::black_knight = { black_bits | knight_bits }
 A constant representing a black knight;.
 
CodeData const cwchess::black_bishop = { black_bits | bishop_bits }
 A constant representing a black bishop;.
 
CodeData const cwchess::black_queen = { black_bits | queen_bits }
 A constant representing a black queen;.
 
CodeData const cwchess::black_king = { black_bits | king_bits }
 A constant representing a black king;.
 

Detailed Description

This file contains the declaration of class Code.

Definition in file Code.h.


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