escape.cc
Go to the documentation of this file.
/* escape.cc
*/
#include "osl/rating/group/escape.h"
osl::rating::
FromEffectGroup::FromEffectGroup() : Group("FromEffect")
{
for (int a=0; a<3; ++a)
for (int d=0; d<3; ++d)
for (int p=0; p<8; ++p) // progress8
push_back(new FromEffect(a, d));
}
osl::rating::
PtypeAttackedGroup::PtypeAttackedGroup() : Group("PtypeAttacked")
{
for (int s=PTYPE_PIECE_MIN; s<=PTYPE_MAX; ++s) {
for (int a=PTYPE_MIN; a<=PTYPE_MAX; ++a) {
for (int p=0; p<8; ++p) // progress8
push_back(new PtypeAttacked(static_cast<Ptype>(s), static_cast<Ptype>(a)));
}
}
}
osl::rating::
ImmediateEscapeGroup::ImmediateEscapeGroup() : Group("ImmediateEscape")
{
for (int s=PTYPE_PIECE_MIN; s<=PTYPE_MAX; ++s) {
for (int a=PTYPE_PIECE_MIN; a<=PTYPE_MAX; ++a) {
for (int p=0; p<8; ++p) // progress8
push_back(new ImmediateEscape(static_cast<Ptype>(s), static_cast<Ptype>(a)));
}
}
}
osl::rating::
KingEscapeGroup::KingEscapeGroup() : Group("KingEscape")
{
for (int s=PTYPE_PIECE_MIN; s<=PTYPE_MAX; ++s)
push_back(new KingEscape(static_cast<Ptype>(s)));
}
/* ------------------------------------------------------------------------- */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
osl::rating::FromEffect
移動元へのきき。attack defense は言葉の意味と逆で自分がattack
Definition feature/escape.h:15
osl::rating::Group::Group
Group(const std::string &name)
Definition group.cc:15
osl::rating::ImmediateEscape
Definition feature/escape.h:53
osl::rating::KingEscapeGroup::KingEscapeGroup
KingEscapeGroup()
Definition escape.cc:37
osl::rating::KingEscape
Definition feature/escape.h:75
osl::rating::PtypeAttacked
Definition feature/escape.h:26
escape.h
osl::Ptype
Ptype
駒の種類を4ビットでコード化する
Definition basic_type.h:84
osl::PTYPE_PIECE_MIN
@ PTYPE_PIECE_MIN
Definition basic_type.h:104
osl::PTYPE_MAX
@ PTYPE_MAX
Definition basic_type.h:105
osl::PTYPE_MIN
@ PTYPE_MIN
Definition basic_type.h:102
osl::rating::FromEffectGroup::FromEffectGroup
FromEffectGroup()
Definition escape.cc:6
osl::rating::ImmediateEscapeGroup::ImmediateEscapeGroup
ImmediateEscapeGroup()
Definition escape.cc:26
osl::rating::PtypeAttackedGroup::PtypeAttackedGroup
PtypeAttackedGroup()
Definition escape.cc:15