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

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

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

Go to the source code of this file.

Classes

struct  cwchess::FlagsData
 The POD base type of class Flags. More...
 
class  cwchess::Flags
 Flags representing the state of a piece on the chessboard. More...
 

Namespaces

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

Functions

bool cwchess::operator== (FlagsData f1, FlagsData f2)
 
bool cwchess::operator!= (FlagsData f1, FlagsData f2)
 
FlagsData cwchess::operator| (FlagsData x, FlagsData y)
 Calculate the union of two Flags constants.
 
FlagsData cwchess::operator& (FlagsData x, FlagsData y)
 Calculate the intersection of two Flags constants.
 
FlagsData cwchess::operator^ (FlagsData x, FlagsData y)
 Calculate the union minus the intersection of two Flags constants.
 

Variables

FlagsData const cwchess::fl_none = { 0 }
 
uint8_t const cwchess::fl_pawn_mask = { 120 }
 
FlagsData const cwchess::fl_pawn_can_take_queen_side = { 8 }
 A constant representing the flag 'pawn can take queen side'.
 
FlagsData const cwchess::fl_pawn_is_not_blocked = { 16 }
 A constant representing the flag 'pawn is not blocked'.
 
FlagsData const cwchess::fl_pawn_can_take_king_side = { 32 }
 A constant representing the flag 'pawn can take king side'.
 
FlagsData const cwchess::fl_pawn_can_move_two_squares = { 64 }
 A constant representing the flag 'pawn can move two squares'.
 

Detailed Description

This file contains the declaration of class Flags.

Definition in file Flags.h.


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