Public Member Functions | Public Attributes | Friends | List of all members
cwchess::Direction Struct Reference

Public Member Functions

FlagsData mover_flags (void) const
 
FlagsData pinning_flags (void) const
 
bool is_horizontal (void) const
 
bool matches (Type const& type) const
 
BitBoard from (Index const& index) const
 Return a BitBoard with all squares in this direction.
 

Public Attributes

int8_t const shift
 
int8_t const offset
 
int8_t const index
 
uint8_t const flags
 

Friends

Index operator+ (Index const& index, Direction const& direction)
 
Index operator+ (Direction const& direction, Index const& index)
 
Index operator- (Index const& index, Direction const& direction)
 
Index operator- (Direction const& direction, Index const& index)
 

Detailed Description

Definition at line 44 of file Direction.h.


The documentation for this struct was generated from the following files:

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