My Project
countMobility.h File Reference

Go to the source code of this file.

Namespaces

namespace  osl
namespace  osl::mobility

Functions

template<Player P, bool All, bool Safe>
void osl::mobility::countMobilityBoth (const NumEffectState &state, Square pos, Offset o, int &countAll, int &countSafe)
 P : 駒pの持ち主 All : countAllを求めるかどうか?
void osl::mobility::countMobilityBoth (Player P, const NumEffectState &state, Square pos, Offset o, int &countAll, int &countSafe)
int osl::mobility::countMobilityAll (Player pl, const NumEffectState &state, Square pos, Offset o)
 利きに関係なく動けるマスの数
int osl::mobility::countMobilitySafe (Player pl, const NumEffectState &state, Square pos, Offset o)
 相手の利きがない動けるマスを求める