-inline ScaleFactor MaterialInfo::scale_factor(const Position& pos, Color c) const {
-
- if (!scalingFunction[c])
- return ScaleFactor(factor[c]);
-
- ScaleFactor sf = (*scalingFunction[c])(pos);
- return sf == SCALE_FACTOR_NONE ? ScaleFactor(factor[c]) : sf;
-}
-
-inline Value MaterialInfo::evaluate(const Position& pos) const {
- return (*evaluationFunction)(pos);
-}
-
-inline Score MaterialInfo::material_value() const {
- return make_score(value, value);
-}
-
-inline int MaterialInfo::space_weight() const {
- return spaceWeight;
-}