Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
include
osl
neighboring8.h
Go to the documentation of this file.
1
/* neighboring8.h
2
*/
3
#ifndef OSL_NEIGHBORING8_H
4
#define OSL_NEIGHBORING8_H
5
6
#include "
osl/boardTable.h
"
7
8
namespace
osl
9
{
10
struct
Neighboring8
11
{
12
static
bool
isNeighboring8
(
Square
from,
Square
to)
13
{
14
return
(from != to)
15
&& (to == from+
Board_Table
.
getShortOffsetNotKnight
(
Offset32
(to,from)));
16
}
17
};
18
19
}
// namespace osl
20
21
#endif
/* OSL_NEIGHBORING8_H */
22
// ;;; Local Variables:
23
// ;;; mode:c++
24
// ;;; c-basic-offset:2
25
// ;;; End:
Generated on Sun Jul 21 2013 13:37:25 by
1.8.4