king8.cc
Go to the documentation of this file.
00001 /* king8.cc
00002  */
00003 #include "osl/rating/feature/king8.h"
00004 
00005 const std::string osl::rating::AttackKing8::name(Ptype self, Ptype target, bool same) 
00006 {
00007   return std::string(Ptype_Table.getCsaName(self)) + "-" 
00008     + Ptype_Table.getCsaName(target) + (same ? "=" : "!");
00009 }
00010 
00011 const std::string osl::rating::DefenseKing8::name(Ptype self, bool drop, int danger) 
00012 {
00013   return std::string(Ptype_Table.getCsaName(self)) + "-" 
00014     + (drop ? "d" : "m") + (char)('0' + danger);
00015 }
00016 
00017 
00018 /* ------------------------------------------------------------------------- */
00019 // ;;; Local Variables:
00020 // ;;; mode:c++
00021 // ;;; c-basic-offset:2
00022 // ;;; End:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines