ptypeEvalTraits.h
Go to the documentation of this file.
00001 /* ptypeEvalTraits.h
00002  */
00003 #ifndef EVAL_PTYPEEVALTRAITS_H
00004 #define EVAL_PTYPEEVALTRAITS_H
00005 
00006 #include "osl/ptype.h"
00007 namespace osl
00008 {
00009   namespace eval
00010   {
00011     template<Ptype T>
00012     struct PtypeEvalTraits;
00013   
00014     template<>
00015     struct PtypeEvalTraits<PAWN>{
00016       static const int val=128;
00017     };
00018 
00019     template<>
00020     struct PtypeEvalTraits<PPAWN>{
00021       static const int val=768;
00022     };
00023 
00024     template<>
00025     struct PtypeEvalTraits<LANCE>{
00026       static const int val=512;
00027     };
00028 
00029     template<>
00030     struct PtypeEvalTraits<PLANCE>{
00031       static const int val=768;
00032     };
00033 
00034     template<>
00035     struct PtypeEvalTraits<KNIGHT>{
00036       static const int val=512;
00037     };
00038 
00039     template<>
00040     struct PtypeEvalTraits<PKNIGHT>{
00041       static const int val=768;
00042     };
00043 
00044     template<>
00045     struct PtypeEvalTraits<SILVER>{
00046       static const int val=704;
00047     };
00048 
00049     template<>
00050     struct PtypeEvalTraits<PSILVER>{
00051       static const int val=768;
00052     };
00053 
00054     template<>
00055     struct PtypeEvalTraits<GOLD>{
00056       static const int val=768;
00057     };
00058 
00059     template<>
00060     struct PtypeEvalTraits<BISHOP>{
00061       static const int val=1024;
00062     };
00063 
00064     template<>
00065     struct PtypeEvalTraits<PBISHOP>{
00066       static const int val=1472;
00067     };
00068 
00069     template<>
00070     struct PtypeEvalTraits<ROOK>{
00071       static const int val=1216;
00072     };
00073 
00074     template<>
00075     struct PtypeEvalTraits<PROOK>{
00076       static const int val=1664;
00077     };
00078 
00079     template<>
00080     struct PtypeEvalTraits<KING>{
00081       static const int val=12800;
00082     };
00083   
00084   } // namespace eval
00085 } // namespace osl
00086 
00087 
00088 #endif /* EVAL_PTYPEEVALTRAITS_H */
00089 // ;;; Local Variables:
00090 // ;;; mode:c++
00091 // ;;; c-basic-offset:2
00092 // ;;; End:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines