All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Static Public Member Functions | Static Private Member Functions | List of all members
osl::effect_util::PinOrOpen Class Reference

#include <pin.h>

Static Public Member Functions

template<Player Defense>
static PieceMask makeStep (const NumEffectState &state, Square target)
 
static PieceMask makeStep (const NumEffectState &state, Square target, Player defense)
 
static PieceMask make (const NumEffectState &state, Player defense)
 

Static Private Member Functions

template<Player Defense, Direction DIR>
static void findDirectionStep (const NumEffectState &state, Square target, PieceMask &pins, PieceMask const &onBoard)
 駒から8近傍をサーチしていって,その方向の利きがあるか? More...
 

Detailed Description

Definition at line 14 of file effect_util/pin.h.

Member Function Documentation

template<Player Defense, Direction DIR>
static void osl::effect_util::PinOrOpen::findDirectionStep ( const NumEffectState &  state,
Square  target,
PieceMask &  pins,
PieceMask const &  onBoard 
)
inlinestaticprivate

駒から8近傍をサーチしていって,その方向の利きがあるか?

Definition at line 21 of file effect_util/pin.h.

References osl::DirectionTraits< Dir >::blackOffset(), osl::Piece::isEdgeNum(), osl::Piece::isEmptyNum(), and osl::Piece::isPieceNum().

static PieceMask osl::effect_util::PinOrOpen::make ( const NumEffectState &  state,
Player  defense 
)
inlinestatic

Definition at line 60 of file effect_util/pin.h.

References osl::BLACK, and makeStep().

template<Player Defense>
static PieceMask osl::effect_util::PinOrOpen::makeStep ( const NumEffectState &  state,
Square  target 
)
inlinestatic

Definition at line 37 of file effect_util/pin.h.

References osl::alt(), and target.

Referenced by make().

static PieceMask osl::effect_util::PinOrOpen::makeStep ( const NumEffectState &  state,
Square  target,
Player  defense 
)
inlinestatic

Definition at line 52 of file effect_util/pin.h.

References osl::BLACK, and target.


The documentation for this class was generated from the following file: