My Project
osl::effect_action::AlwaysMove< Action > Class Template Reference

全ての指手を生成 More...

#include <effect_action.h>

Public Member Functions

 AlwaysMove (const NumEffectState &s, Action &a)
template<Player P, Ptype Type>
void doActionPtype (Piece p1, Square to)
 Ptypeをtemplate引数にできる場合
template<Player P>
void doAction (Piece p1, Square to)
 Ptypeをtemplate引数にできない場合
bool done () const

Private Attributes

const NumEffectStatestate
Action & ac

Detailed Description

template<class Action>
class osl::effect_action::AlwaysMove< Action >

全ての指手を生成

Definition at line 13 of file effect_action.h.

Constructor & Destructor Documentation

◆ AlwaysMove()

template<class Action>
osl::effect_action::AlwaysMove< Action >::AlwaysMove ( const NumEffectState & s,
Action & a )
inline

Definition at line 19 of file effect_action.h.

References ac, and state.

Member Function Documentation

◆ doAction()

template<class Action>
template<Player P>
void osl::effect_action::AlwaysMove< Action >::doAction ( Piece p1,
Square to )
inline

Ptypeをtemplate引数にできない場合

Definition at line 42 of file effect_action.h.

References ac, osl::canPromote(), osl::Square::canPromote(), osl::promote(), osl::Piece::ptype(), osl::Ptype_Table, osl::Piece::square(), and state.

◆ doActionPtype()

template<class Action>
template<Player P, Ptype Type>
void osl::effect_action::AlwaysMove< Action >::doActionPtype ( Piece p1,
Square to )
inline

◆ done()

template<class Action>
bool osl::effect_action::AlwaysMove< Action >::done ( ) const
inline

Definition at line 71 of file effect_action.h.

Member Data Documentation

◆ ac

template<class Action>
Action& osl::effect_action::AlwaysMove< Action >::ac
private

Definition at line 17 of file effect_action.h.

Referenced by AlwaysMove(), doAction(), and doActionPtype().

◆ state

template<class Action>
const NumEffectState& osl::effect_action::AlwaysMove< Action >::state
private

Definition at line 16 of file effect_action.h.

Referenced by AlwaysMove(), doAction(), and doActionPtype().


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