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

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

#include "BitBoard.h"
#include "Type.h"
#include "Flags.h"
Include dependency graph for Direction.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cwchess::Direction
 

Namespaces

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

Functions

BitBoard cwchess::squares_from_to (Index const& from, Index const& to)
 
Direction const&  cwchess::direction_from_to (Index const& from, Index const& to)
 

Variables

uint8_t const cwchess::df_rook_mover = rook_bits
 
uint8_t const cwchess::df_bishop_mover = bishop_bits
 
uint8_t const cwchess::df_pinned_horizontally = 0 << 3
 
uint8_t const cwchess::df_pinned_vertically = 1 << 3
 
uint8_t const cwchess::df_pinned_slashy = 2 << 3
 
uint8_t const cwchess::df_pinned_backslashy = 3 << 3
 
uint8_t const cwchess::df_pinned_mask = 3 << 3
 
Direction const cwchess::south_west = { 9, -9, 0, df_bishop_mover | df_pinned_slashy }
 
Direction const cwchess::south = { 8, -8, 1, df_rook_mover | df_pinned_vertically }
 
Direction const cwchess::south_east = { 7, -7, 2, df_bishop_mover | df_pinned_backslashy }
 
Direction const cwchess::west = { 1, -1, 3, df_rook_mover | df_pinned_horizontally }
 
Direction const cwchess::east = { 1, 1, 4, df_rook_mover | df_pinned_horizontally }
 
Direction const cwchess::north_west = { 7, 7, 5, df_bishop_mover | df_pinned_backslashy }
 
Direction const cwchess::north = { 8, 8, 6, df_rook_mover | df_pinned_vertically }
 
Direction const cwchess::north_east = { 9, 9, 7, df_bishop_mover | df_pinned_slashy }
 

Detailed Description

This file contains the declaration of class Direction.

Definition in file Direction.h.


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