/usr/include/osl/move_classifier/openCheck.h is in libosl-dev 0.6.0-3.3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | /* openCheck.h
*/
#ifndef _MOVE_CLASSIFIER_OPENCHECK_H
#define _MOVE_CLASSIFIER_OPENCHECK_H
#include "osl/move_classifier/classifierTraits.h"
#include "osl/move_classifier/kingOpenMove.h"
#include "osl/state/numEffectState.h"
namespace osl
{
namespace move_classifier
{
template <Player P>
struct OpenCheck
{
static bool isMember(const NumEffectState& state,
Ptype ptype,Square from,Square to)
{
return KingOpenMove<PlayerTraits<P>::opponent>::isMember
(state,ptype,from,to);
}
};
template <Player P> struct ClassifierTraits<OpenCheck<P> >
{
static const bool drop_suitable = false;
static const bool result_if_drop = false;
};
} // namespace move_classifier
} // namespace osl
#endif /* _MOVE_CLASSIFIER_OPENCHECK_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
|