Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
include
osl
move_classifier
trapRook.h
Go to the documentation of this file.
1
/* trapRook.h
2
*/
3
#ifndef OSL_MOVE_CLASSIFIER_TRAPROOK_H
4
#define OSL_MOVE_CLASSIFIER_TRAPROOK_H
5
6
#include "
osl/state/numEffectState.h
"
7
namespace
osl
8
{
9
namespace
move_classifier
10
{
14
template
<Player P>
15
struct
TrapRook
16
{
17
static
bool
18
#ifdef __GNUC__
19
__attribute__
((pure))
20
#endif
21
isMember
(
const
NumEffectState& state,
22
Ptype
ptype,
Square
from,
Square
to);
23
private
:
24
template
<Direction Dir>
25
static
bool
26
#ifdef __GNUC__
27
__attribute__
((pure))
28
#endif
29
testDirection
(
const
NumEffectState& state,
Square
initial);
30
};
31
}
// namespace move_classifier
32
}
// namespace osl
33
34
35
#endif
/* OSL_MOVE_CLASSIFIER_TRAPROOK_H */
36
// ;;; Local Variables:
37
// ;;; mode:c++
38
// ;;; c-basic-offset:2
39
// ;;; coding:utf-8
40
// ;;; End:
Generated on Sun Jul 21 2013 13:37:27 by
1.8.4