#include <ai_dfool.hpp>
Public Member Functions | |
distance_evaluator (const game_state &s, std::map< std::string, evaluator * > *m) | |
std::string | value (const std::string &s) |
Private Member Functions | |
std::list< std::string > | parse_tokens (const std::string &) |
std::string | evaluate_tokens (std::list< std::string > &) |
Definition at line 86 of file ai_dfool.hpp.
dfool::distance_evaluator::distance_evaluator | ( | const game_state & | s, | |
std::map< std::string, evaluator * > * | m | |||
) | [inline] |
Definition at line 88 of file ai_dfool.hpp.
std::string dfool::distance_evaluator::value | ( | const std::string & | s | ) | [virtual] |
Reimplemented from dfool::arithmetic_evaluator.
Definition at line 646 of file ai_dfool.cpp.
References a, b, distance_between(), utils::split(), value, gamemap::location::x, and gamemap::location::y.
std::list<std::string> dfool::distance_evaluator::parse_tokens | ( | const std::string & | ) | [private] |
Reimplemented from dfool::arithmetic_evaluator.
std::string dfool::distance_evaluator::evaluate_tokens | ( | std::list< std::string > & | ) | [private] |
Reimplemented from dfool::arithmetic_evaluator.
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |