/usr/include/osl/move_action/count.h is in libosl-dev 0.6.0-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 62 | /* count.h
*/
#ifndef _MOVE_ACTION_COUNT_H
#define _MOVE_ACTION_COUNT_H
#include "osl/piece.h"
namespace osl
{
namespace move_action
{
/**
* 指手の数を数えるだけ
*/
struct Count
{
int count;
Count() : count(0)
{
}
/** コマをとらないMove */
void simpleMove(Square /*from*/,Square /*to*/,Ptype /*ptype*/, bool /*isPromote*/,Player /*p*/,Move){
count++;
}
/**
* コマを取るかもしれないMove
* @param from - 駒の移動元
* @param to - 駒の移動先
* @param p1 - 移動先のマスの駒
* @param ptype - 移動後の駒のptype
* @param isPromote - 成りか?
* @param p - プレイヤー
*/
void unknownMove(Square /*from*/,Square /*to*/,Piece /*p1*/,Ptype /*ptype*/,bool /*isPromote*/,Player /*p*/,Move){
count++;
}
/** コマを打つMove */
void dropMove(Square /*to*/,Ptype /*ptype*/,Player /*p*/,Move ){
count++;
}
// old interfaces
void simpleMove(Square from,Square to,Ptype ptype,
bool isPromote,Player p)
{
simpleMove(from,to,ptype,isPromote,p,Move());
}
void unknownMove(Square from,Square to,Piece captured,
Ptype ptype,bool isPromote,Player p)
{
unknownMove(from,to,captured,ptype,isPromote,p,Move());
}
void dropMove(Square to,Ptype ptype,Player p)
{
dropMove(to,ptype,p,Move());
}
};
} // namespace move_action
} // namespace osl
#endif /* _MOVE_ACTION_COUNT_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
|