Public Member Functions | Public Attributes | List of all members
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が自殺手になることはない More...
 
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,
Move  m 
)
inline

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

Definition at line 196 of file move_action.h.

◆ dropMove() [2/2]

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

Definition at line 218 of file move_action.h.

References osl::move_action::Store::dropMove().

◆ isNotKingOpenMove()

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

◆ 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,
Move  m 
)
inline

Definition at line 172 of file move_action.h.

◆ simpleMove() [2/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

Definition at line 206 of file move_action.h.

References osl::PTYPE_EMPTY, and osl::move_action::Store::simpleMove().

◆ unknownMove() [1/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

Definition at line 183 of file move_action.h.

◆ unknownMove() [2/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

Definition at line 212 of file move_action.h.

References osl::Piece::ptype(), and osl::move_action::Store::unknownMove().

Member Data Documentation

◆ action

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

Definition at line 163 of file move_action.h.

◆ state

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

Definition at line 162 of file move_action.h.


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