00001 /* neighboring8.h 00002 */ 00003 #ifndef _NEIGHBORING8_H 00004 #define _NEIGHBORING8_H 00005 00006 #include "osl/boardTable.h" 00007 00008 namespace osl 00009 { 00010 struct Neighboring8 00011 { 00012 static bool isNeighboring8(Position from,Position to) 00013 { 00014 return (from != to) 00015 && (to == from+Board_Table.getShortOffsetNotKnight(Offset32(to,from))); 00016 } 00017 }; 00018 00019 } // namespace osl 00020 00021 #endif /* _NEIGHBORING8_H */ 00022 // ;;; Local Variables: 00023 // ;;; mode:c++ 00024 // ;;; c-basic-offset:2 00025 // ;;; End: