Classes | Namespaces | Functions | Variables
Type.h File Reference

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

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

Go to the source code of this file.

Classes

struct  cwchess::TypeData
 The POD base type of class Type. More...
 
class  cwchess::Type
 A chess piece type. More...
 

Namespaces

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

Functions

bool cwchess::operator== (TypeData t1, TypeData t2)
 
bool cwchess::operator!= (TypeData t1, TypeData t2)
 

Variables

uint8_t const cwchess::nothing_bits = 0
 The underlaying integral value of type 'nothing'.
 
uint8_t const cwchess::pawn_bits = 1
 The underlaying integral value of type 'pawn'.
 
uint8_t const cwchess::knight_bits = 2
 The underlaying integral value of type 'knight'.
 
uint8_t const cwchess::king_bits = 3
 The underlaying integral value of type 'king'.
 
uint8_t const cwchess::bishop_bits = 5
 The underlaying integral value of type 'bishop'.
 
uint8_t const cwchess::rook_bits = 6
 The underlaying integral value of type 'rook'.
 
uint8_t const cwchess::queen_bits = 7
 The underlaying integral value of type 'queen'.
 
uint8_t const cwchess::type_mask = 7
 A mask for the bits used for the type of a piece.
 
TypeData const cwchess::nothing = { nothing_bits }
 A constant representing the absence of a piece.
 
TypeData const cwchess::pawn = { pawn_bits }
 A constant representing a pawn.
 
TypeData const cwchess::knight = { knight_bits }
 A constant representing a knight.
 
TypeData const cwchess::king = { king_bits }
 A constant representing a king.
 
TypeData const cwchess::bishop = { bishop_bits }
 A constant representing a bishop.
 
TypeData const cwchess::rook = { rook_bits }
 A constant representing a rook.
 
TypeData const cwchess::queen = { queen_bits }
 A constant representing a queen.
 

Detailed Description

This file contains the declaration of class Type.

Definition in file Type.h.


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