#include <ai_dfool.hpp>
Public Member Functions | |
arithmetic_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 77 of file ai_dfool.hpp.
dfool::arithmetic_evaluator::arithmetic_evaluator | ( | const game_state & | s, | |
std::map< std::string, evaluator * > * | m | |||
) | [inline] |
Definition at line 79 of file ai_dfool.hpp.
std::string dfool::arithmetic_evaluator::value | ( | const std::string & | s | ) | [virtual] |
Reimplemented from dfool::evaluator.
Reimplemented in dfool::distance_evaluator.
Definition at line 479 of file ai_dfool.cpp.
References evaluate_tokens(), parse_tokens(), and value.
Referenced by parse_tokens().
std::list< std::string > dfool::arithmetic_evaluator::parse_tokens | ( | const std::string & | s | ) | [private] |
Reimplemented in dfool::distance_evaluator.
Definition at line 551 of file ai_dfool.cpp.
References utils::paranthetical_split(), size, and value().
Referenced by value().
std::string dfool::arithmetic_evaluator::evaluate_tokens | ( | std::list< std::string > & | tlist | ) | [private] |
Reimplemented in dfool::distance_evaluator.
Definition at line 494 of file ai_dfool.cpp.
Referenced by value().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |