Use template for endgame scaling functions

Also integrate scaling and evaluation in a
single base class.

Nice use of templates here :-)

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2009-02-12 14:59:46 +01:00
parent 039badfda8
commit 67375f4693
4 changed files with 84 additions and 207 deletions

View File

@@ -63,8 +63,8 @@ private:
int16_t mgValue;
int16_t egValue;
uint8_t factor[2];
EndgameEvaluationFunction* evaluationFunction;
ScalingFunction* scalingFunction[2];
EndgameEvaluationFunctionBase* evaluationFunction;
EndgameScalingFunctionBase* scalingFunction[2];
uint8_t spaceWeight;
};