osl::effect_util::UnblockableCheck Struct Reference

- Main Page
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

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

`#include <unblockableCheck.h>`

## Static Public Member Functions
static bool | isMember (Player target, const NumEffectState &state)
| target の王に合駒可能でない王手がかかっているかどうか. More...

## Detailed Description

Definition at line 12 of file unblockableCheck.h.

## Member Function Documentation

static bool osl::effect_util::UnblockableCheck::isMember | ( | Player | target,
|  | const NumEffectState & | state
| ) |  |
| inlinestatic

target の王に合駒可能でない王手がかかっているかどうか.

- 両王手 => 真
- unblockable な利きだけ => 真
- blockable な利きだけ => 偽
- 王手でない => 偽

Definition at line 21 of file unblockableCheck.h.

References osl::alt(), osl::Piece::EMPTY(), osl::PtypeTable::getEffect(), osl::EffectContent::hasUnblockableEffect(), osl::Ptype_Table, osl::Piece::ptypeO(), and osl::Piece::square().

Referenced by osl::ntesuki::NtesukiRecord::calcProofPiecesAnd(), osl::checkmate::FixedDepthSearcher2::defense(), osl::checkmate::FixedDepthSearcher::defense(), osl::checkmate::ProofPieces::leaf(), and osl::checkmate::Dfpn::Node::setCheckmateDefense().

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

- unblockableCheck.h