My Project
std
osl
move_probability
pinnedGeneral.h
Go to the documentation of this file.
1
/* pinnedGeneral.h
2
*/
3
#ifndef OSL_MOVE_PROBABILITY_PINNEDGENERAL_H
4
#define OSL_MOVE_PROBABILITY_PINNEDGENERAL_H
5
#include "
osl/basic_type.h
"
6
7
namespace
osl
8
{
9
namespace
move_probability
10
{
11
struct
PinnedGeneral
12
{
13
Piece
general
,
covered
;
14
Square
attack
;
15
PinnedGeneral
(
Piece
g,
Piece
c,
Square
a) :
general
(g),
covered
(c),
attack
(a)
16
{
17
}
18
PinnedGeneral
() {}
19
};
20
inline
bool
operator==
(
const
PinnedGeneral
& l,
const
PinnedGeneral
& r)
21
{
22
return
l.
general
== r.
general
&& l.
covered
== r.
covered
&& l.
attack
== r.
attack
;
23
}
24
}
25
}
26
27
#endif
/* OSL_MOVE_PROBABILITY_PINNEDGENERAL_H */
28
// ;;; Local Variables:
29
// ;;; mode:c++
30
// ;;; c-basic-offset:2
31
// ;;; End:
basic_type.h
osl::Piece
駒.
Definition
basic_type.h:788
osl::Square
Definition
basic_type.h:532
osl::move_probability::operator==
bool operator==(const PinnedGeneral &l, const PinnedGeneral &r)
Definition
pinnedGeneral.h:20
osl
Definition
additionalEffect.h:6
osl::move_probability::PinnedGeneral
Definition
pinnedGeneral.h:12
osl::move_probability::PinnedGeneral::PinnedGeneral
PinnedGeneral()
Definition
pinnedGeneral.h:18
osl::move_probability::PinnedGeneral::general
Piece general
Definition
pinnedGeneral.h:13
osl::move_probability::PinnedGeneral::PinnedGeneral
PinnedGeneral(Piece g, Piece c, Square a)
Definition
pinnedGeneral.h:15
osl::move_probability::PinnedGeneral::covered
Piece covered
Definition
pinnedGeneral.h:13
osl::move_probability::PinnedGeneral::attack
Square attack
Definition
pinnedGeneral.h:14
Generated by
1.9.8