/usr/include/osl/state/numEffectState.tcc is in libosl-dev 0.4.2-1.
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 | /* numEffectState.tcc
*/
#ifndef OSL_NUM_EFFECT_STATE_TCC
#define OSL_NUM_EFFECT_STATE_TCC
#include "osl/state/numEffectState.h"
#include "osl/effect/numSimpleEffect.tcc"
#include "osl/checkmate/king8Info.h"
template <osl::Player P>
bool osl::NumEffectState::
hasEffectByWithRemove(Square target,Square removed) const
{
const Piece piece = pieceAt(removed);
if (! piece.isPiece())
return hasEffectAt<P>(target);
if (piece.owner() == P)
{
if (hasEffectNotBy(P, piece, target))
return true;
}
else
{
if (hasEffectAt(P, target))
return true;
}
if (! longEffectAt(removed, P).any())
return false;
const Direction d = Board_Table.getLongDirection<BLACK>(Offset32(target,removed));
if (!isLong(d))
return false;
const int num=longEffectNumTable()[piece.number()][longToShort(d)];
return (! Piece::isEmptyNum(num)
&& pieceOf(num).owner()==P);
}
#endif /* OSL_NUM_EFFECT_STATE_TCC */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
|