osl::move_classifier::DirectCheck< P > Struct Template Reference

`#include <directCheck.h>`

## Static Public Member Functions

static bool | isMember (const NumEffectState &state, Ptype ptype, Square to)
template<class State>
static bool | isMember (const State &state, Ptype ptype, Square, Square to)

## Detailed Description

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

Definition at line 13 of file directCheck.h.

## Member Function Documentation

## isMember() [1/2]

template<Player P>

bool osl::move_classifier::DirectCheck< P >::isMember | ( | const NumEffectState & | state,
|  | Ptype | ptype,
|  | Square | to )

inline static

最初から王手ということはない．

stateを動かしていないので，fromにある駒がtoからの利きを blockすることは あるが，blockされた利きが王手だったとすると，動かす前から王手 だったとして矛盾するのでOK

Definition at line 15 of file directCheck.h.

References osl::alt(), osl::NumEffectState::hasEffectIf(), and osl::newPtypeO().

Referenced by osl::move_classifier::Check< P >::isMember(), and isMember().

## isMember() [2/2]

template<Player P>
template<class State>

bool osl::move_classifier::DirectCheck< P >::isMember | ( | const State & | state,
|  | Ptype | ptype,
|  | Square | ,
|  | Square | to )

inline static

Definition at line 32 of file directCheck.h.

References isMember().

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

- directCheck.h