My Project
osl::move_action::NotKingOpenFilter< P, OrigAction > Struct Template Reference

相手の間接利きを止めている駒を動かさない More...

#include <move_action.h>

Public Member Functions

 NotKingOpenFilter (const NumEffectState &s, OrigAction &action)
 
bool isNotKingOpenMove (Ptype ptype, Square from, Square to)
 
void simpleMove (Square from, Square to, Ptype ptype, bool isPromote, Player p, Move m)
 
void unknownMove (Square from, Square to, Piece p1, Ptype ptype, bool isPromote, Player p, Move m)
 
void dropMove (Square to, Ptype ptype, Player p, Move m)
 dropMoveが自殺手になることはない
 
void simpleMove (Square from, Square to, Ptype ptype, bool isPromote, Player p)
 
void unknownMove (Square from, Square to, Piece captured, Ptype ptype, bool isPromote, Player p)
 
void dropMove (Square to, Ptype ptype, Player p)
 

Public Attributes

const NumEffectStatestate
 
OrigAction & action
 

Detailed Description

template<Player P, class OrigAction>
struct osl::move_action::NotKingOpenFilter< P, OrigAction >

相手の間接利きを止めている駒を動かさない

Definition at line 160 of file move_action.h.

Constructor & Destructor Documentation

◆ NotKingOpenFilter()

template<Player P, class OrigAction >
osl::move_action::NotKingOpenFilter< P, OrigAction >::NotKingOpenFilter ( const NumEffectState & s,
OrigAction & action )
inline

Definition at line 165 of file move_action.h.

Member Function Documentation

◆ dropMove() [1/2]

template<Player P, class OrigAction >
void osl::move_action::NotKingOpenFilter< P, OrigAction >::dropMove ( Square to,
Ptype ptype,
Player p )
inline

◆ dropMove() [2/2]

template<Player P, class OrigAction >
void osl::move_action::NotKingOpenFilter< P, OrigAction >::dropMove ( Square to,
Ptype ptype,
Player p,
Move m )
inline

dropMoveが自殺手になることはない

Definition at line 196 of file move_action.h.

References osl::move_action::NotKingOpenFilter< P, OrigAction >::action.

Referenced by osl::move_action::NotKingOpenFilter< P, OrigAction >::dropMove().

◆ isNotKingOpenMove()

◆ simpleMove() [1/2]

template<Player P, class OrigAction >
void osl::move_action::NotKingOpenFilter< P, OrigAction >::simpleMove ( Square from,
Square to,
Ptype ptype,
bool isPromote,
Player p )
inline

◆ simpleMove() [2/2]

◆ unknownMove() [1/2]

template<Player P, class OrigAction >
void osl::move_action::NotKingOpenFilter< P, OrigAction >::unknownMove ( Square from,
Square to,
Piece captured,
Ptype ptype,
bool isPromote,
Player p )
inline

◆ unknownMove() [2/2]

template<Player P, class OrigAction >
void osl::move_action::NotKingOpenFilter< P, OrigAction >::unknownMove ( Square from,
Square to,
Piece p1,
Ptype ptype,
bool isPromote,
Player p,
Move m )
inline

Member Data Documentation

◆ action

◆ state

template<Player P, class OrigAction >
const NumEffectState& osl::move_action::NotKingOpenFilter< P, OrigAction >::state

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