pinnedGeneral.h
Go to the documentation of this file.
/* pinnedGeneral.h
*/
#ifndef OSL_MOVE_PROBABILITY_PINNEDGENERAL_H
#define OSL_MOVE_PROBABILITY_PINNEDGENERAL_H
#include "osl/basic_type.h"
namespace osl
{
namespace move_probability
{
struct PinnedGeneral
{
Piece general, covered;
Square attack;
PinnedGeneral(Piece g, Piece c, Square a) : general(g), covered(c), attack(a)
{
}
PinnedGeneral() {}
};
inline bool operator==(const PinnedGeneral& l, const PinnedGeneral& r)
{
return l.general == r.general && l.covered == r.covered && l.attack == r.attack;
}
}
}
#endif /* OSL_MOVE_PROBABILITY_PINNEDGENERAL_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
basic_type.h
osl::Piece
駒.
Definition basic_type.h:788
osl::Square
Definition basic_type.h:532
osl::move_probability
Definition move_probability/feature.h:15
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