My Project
Static Public Member Functions | List of all members
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>
static bool osl::move_classifier::DirectCheck< P >::isMember ( const NumEffectState state,
Ptype  ptype,
Square  to 
)
inlinestatic

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

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::DirectCheck< P >::isMember().

◆ isMember() [2/2]

template<Player P>
template<class State >
static bool osl::move_classifier::DirectCheck< P >::isMember ( const State &  state,
Ptype  ptype,
Square  ,
Square  to 
)
inlinestatic

Definition at line 32 of file directCheck.h.

References osl::move_classifier::DirectCheck< P >::isMember().


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