All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Static Public Member Functions
osl::move_classifier::PawnDropCheckmate< P > Struct Template Reference

打歩詰の判定. More...

#include <pawnDropCheckmate.h>

List of all members.

Static Public Member Functions

static bool canEscape (const NumEffectState &state, Square kingSquare, Direction dir, Square dropAt)
 kingSquare に居る alt(P)の玉が dir 方向に逃げられるか.
static bool escape7 (const NumEffectState &state, Square kingSquare, Square to)
 王が前以外に移動可能か
static bool isMember (const NumEffectState &state, Ptype ptype, Square from, Square to)

Detailed Description

template<Player P>
struct osl::move_classifier::PawnDropCheckmate< P >

打歩詰の判定.

Parameters:
P指手(攻撃)側

Definition at line 18 of file pawnDropCheckmate.h.


Member Function Documentation

template<osl::Player P>
bool osl::move_classifier::PawnDropCheckmate< P >::canEscape ( const NumEffectState &  state,
Square  kingSquare,
Direction  dir,
Square  dropAt 
) [static]
template<osl::Player P>
bool osl::move_classifier::PawnDropCheckmate< P >::escape7 ( const NumEffectState &  state,
Square  kingSquare,
Square  to 
) [static]

王が前以外に移動可能か

Definition at line 102 of file pawnDropCheckmate.h.

References osl::D, osl::DL, osl::DR, osl::L, osl::R, osl::UL, and osl::UR.

Referenced by osl::move_classifier::PawnDropCheckmate< P >::isMember().

template<Player P>
static bool osl::move_classifier::PawnDropCheckmate< P >::isMember ( const NumEffectState &  state,
Ptype  ptype,
Square  from,
Square  to 
) [inline, static]

The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines