/usr/include/osl/rating/group/checkmateGroup.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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | /* checkmateGroup.h
*/
#ifndef _CHECKMATEGROUP_H
#define _CHECKMATEGROUP_H
#include "osl/rating/group.h"
#include "osl/rating/feature/checkmate.h"
namespace osl
{
namespace rating
{
class CheckmateIfCaptureGroup : public Group
{
public:
CheckmateIfCaptureGroup() : Group("CheckmateCap")
{
for (int p=0; p<8; ++p) // progress8
push_back(new CheckmateIfCapture);
}
void show(std::ostream& os, int name_width, const range_t& range,
const vector<double>& weights) const
{
showAll(os, name_width, range, weights);
}
int findMatch(const NumEffectState& state, Move move, const RatingEnv& env) const
{
const int progress8 = env.progress.value()/2;
if ((*this)[0].match(state, move, env))
return progress8;
return -1;
}
};
struct ThreatmateGroup : public Group
{
ThreatmateGroup() : Group("Threatmate")
{
for (int p=0; p<8; ++p) // progress8
push_back(new Threatmate);
}
void show(std::ostream& os, int name_width, const range_t& range,
const vector<double>& weights) const
{
showAll(os, name_width, range, weights);
}
int findMatch(const NumEffectState& state, Move move, const RatingEnv& env) const
{
const int progress8 = env.progress.value()/2;
if ((*this)[0].match(state, move, env))
return progress8;
return -1;
}
};
}
} // name_width osl
#endif /* _CHECKMATEGROUP_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
|