king8.cc Source File

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
rating/feature/king8.cc
Go to the documentation of this file.
1 /* king8.cc
2 */
3 #include "osl/rating/feature/king8.h"
4
5 const std::string osl::rating::AttackKing8::name(Ptype self, Ptype target, bool same)
6 {
7 return std::string(Ptype_Table.getCsaName(self)) + "-"
8 + Ptype_Table.getCsaName(target) + (same ? "=" : "!");
9 }
10
11 const std::string osl::rating::DefenseKing8::name(Ptype self, bool drop, int danger)
12 {
13 return std::string(Ptype_Table.getCsaName(self)) + "-"
14 + (drop ? "d" : "m") + (char)('0' + danger);
15 }
16
17
18 /* ------------------------------------------------------------------------- */
19 // ;;; Local Variables:
20 // ;;; mode:c++
21 // ;;; c-basic-offset:2
22 // ;;; End: