king8_.cc
Go to the documentation of this file.
/* king8.cc
*/
#include "osl/rating/feature/king8.h"
const std::string osl::rating::AttackKing8::name(Ptype self, Ptype target, bool same)
{
return std::string(Ptype_Table.getCsaName(self)) + "-"
+ Ptype_Table.getCsaName(target) + (same ? "=" : "!");
}
const std::string osl::rating::DefenseKing8::name(Ptype self, bool drop, int danger)
{
return std::string(Ptype_Table.getCsaName(self)) + "-"
+ (drop ? "d" : "m") + (char)('0' + danger);
}
/* ------------------------------------------------------------------------- */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
osl::rating::AttackKing8::target
Ptype target
Definition std/osl/rating/feature/king8.h:16
osl::rating::AttackKing8::self
Ptype self
Definition std/osl/rating/feature/king8.h:16
osl::rating::AttackKing8::same
bool same
Definition std/osl/rating/feature/king8.h:17
osl::rating::DefenseKing8::drop
bool drop
Definition std/osl/rating/feature/king8.h:49
osl::rating::DefenseKing8::danger
int danger
Definition std/osl/rating/feature/king8.h:50
osl::rating::DefenseKing8::self
Ptype self
Definition std/osl/rating/feature/king8.h:48
osl::rating::Feature::name
const std::string & name() const
Definition rating/feature.h:24
osl::Ptype
Ptype
駒の種類を4ビットでコード化する
Definition basic_type.h:84
osl::Ptype_Table
const PtypeTable Ptype_Table
Definition tables.cc:97
king8.h