Convert MaterialInfo and PawnInfo to use Score

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2009-11-07 14:05:55 +01:00
parent dda7e4639a
commit 4626ec2890
4 changed files with 17 additions and 19 deletions
+3 -8
View File
@@ -47,8 +47,7 @@ class PawnInfo {
public:
PawnInfo() { clear(); }
Value mg_value() const;
Value eg_value() const;
Score value() const;
Value kingside_storm_value(Color c) const;
Value queenside_storm_value(Color c) const;
Bitboard pawn_attacks(Color c) const;
@@ -99,12 +98,8 @@ private:
//// Inline functions
////
inline Value PawnInfo::mg_value() const {
return Value(mgValue);
}
inline Value PawnInfo::eg_value() const {
return Value(egValue);
inline Score PawnInfo::value() const {
return Score(mgValue, egValue);
}
inline Bitboard PawnInfo::passed_pawns() const {