My Project
osl::Neighboring8Direct Class Reference

8近傍への直接の利きを判定する More...

#include <neighboring8Direct.h>

Classes

class  Table

Static Public Member Functions

static bool hasEffect (const NumEffectState &state, PtypeO ptypeo, Square from, Square target)
 ptypeo の駒がfromからtargetの8近傍に直接の利きを持つか
static bool hasEffectOrAdditional (const NumEffectState &state, PtypeO ptypeo, Square from, Square target)
 ptypeo の駒がfromからtargetの8近傍に直接の利きを持つか そのような駒への追加/影利きになっている
static Square findNearest (const NumEffectState &state, PtypeO ptypeo, Square from, Square target)
static bool hasEffectNaive (const NumEffectState &state, PtypeO ptypeo, Square from, Square target)
static void init ()

Static Private Member Functions

static bool hasEffectFromTo (const NumEffectState &state, PtypeO ptypeo, Square from, Square target, Direction d)

Static Private Attributes

static Table table

Detailed Description

8近傍への直接の利きを判定する

Definition at line 15 of file neighboring8Direct.h.

Member Function Documentation

◆ findNearest()

Square osl::effect_util::Neighboring8Direct::findNearest ( const NumEffectState & state,
PtypeO ptypeo,
Square from,
Square target )
inlinestatic

◆ hasEffect()

◆ hasEffectFromTo()

bool osl::effect_util::Neighboring8Direct::hasEffectFromTo ( const NumEffectState & state,
PtypeO ptypeo,
Square from,
Square target,
Direction d )
staticprivate

Definition at line 91 of file neighboring8Direct.cc.

◆ hasEffectNaive()

bool osl::effect_util::Neighboring8Direct::hasEffectNaive ( const NumEffectState & state,
PtypeO ptypeo,
Square from,
Square target )
static

Definition at line 100 of file neighboring8Direct.cc.

◆ hasEffectOrAdditional()

bool osl::effect_util::Neighboring8Direct::hasEffectOrAdditional ( const NumEffectState & state,
PtypeO ptypeo,
Square from,
Square target )
inlinestatic

ptypeo の駒がfromからtargetの8近傍に直接の利きを持つか そのような駒への追加/影利きになっている

Definition at line 118 of file neighboring8Direct.h.

Referenced by osl::checkmate::CheckmateIfCapture::effectiveAttackCandidate0(), and osl::rating::Threatmate::isCandidate().

◆ init()

Definition at line 14 of file neighboring8Direct.cc.

Member Data Documentation

◆ table

osl::effect_util::Neighboring8Direct::Table osl::effect_util::Neighboring8Direct::table
staticprivate

Definition at line 103 of file neighboring8Direct.h.


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