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

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

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

Go to the source code of this file.

Classes

struct  cwchess::ColorData
 The POD base type of class Color. More...
 
class  cwchess::Color
 A color (black or white). More...
 

Namespaces

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

Functions

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

Variables

uint8_t const cwchess::black_bits = 0
 The underlaying integral value of color 'black'.
 
uint8_t const cwchess::white_bits = 8
 The underlaying integral value of color 'white'.
 
uint8_t const cwchess::color_mask = 8
 A mask for the bits used for the color of a piece.
 
ColorData const cwchess::black = { black_bits }
 A constant representing the color black.
 
ColorData const cwchess::white = { white_bits }
 A constant representing the color white.
 

Detailed Description

This file contains the declaration of class Color.

Definition in file Color.h.


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