#include <ai_dfool.hpp>
Public Member Functions | |
evaluator (const game_state &s, std::map< std::string, evaluator * > *m) | |
virtual | ~evaluator () |
virtual std::string | value (const std::string &s) |
Private Attributes | |
std::map< std::string, evaluator * > * | function_map_ |
const game_state & | state |
Definition at line 67 of file ai_dfool.hpp.
dfool::evaluator::evaluator | ( | const game_state & | s, | |
std::map< std::string, evaluator * > * | m | |||
) | [inline] |
Definition at line 69 of file ai_dfool.hpp.
virtual dfool::evaluator::~evaluator | ( | ) | [inline, virtual] |
Definition at line 70 of file ai_dfool.hpp.
std::string dfool::evaluator::value | ( | const std::string & | s | ) | [virtual] |
Reimplemented in dfool::arithmetic_evaluator, and dfool::distance_evaluator.
Definition at line 413 of file ai_dfool.cpp.
References function_map_, lg::info, utils::interpolate_variables_into_string(), LOG_STREAM, utils::paranthetical_split(), size, utils::split(), state, and value().
Referenced by value().
std::map<std::string, evaluator*>* dfool::evaluator::function_map_ [private] |
const game_state& dfool::evaluator::state [private] |
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |