Simulate combat to calculate attacks. More...
#include <cfloat>#include "attack_prediction.hpp"#include "actions.hpp"#include "game_config.hpp"
Go to the source code of this file.
Defines | |
| #define | debug(x) |
Functions | |
| static void | forced_levelup (std::vector< double > &hp_dist) |
| static void | conditional_levelup (std::vector< double > &hp_dist, double kill_prob) |
Simulate combat to calculate attacks.
Standalone program, benchmark.
Definition in file attack_prediction.cpp.
| #define debug | ( | x | ) |
Definition at line 46 of file attack_prediction.cpp.
Referenced by ai::typesafe_known_aspect< T >::add_facet(), combatant::adjust_hitchance(), combatant::complex_fight(), gui2::team_mode_controller::handle_stuff_list_selection(), ai::typesafe_known_aspect< T >::set(), and ai::standard_aspect< T >::standard_aspect().
| static void conditional_levelup | ( | std::vector< double > & | hp_dist, | |
| double | kill_prob | |||
| ) | [static] |
Definition at line 716 of file attack_prediction.cpp.
Referenced by combatant::one_strike_fight().

| static void forced_levelup | ( | std::vector< double > & | hp_dist | ) | [static] |
Definition at line 704 of file attack_prediction.cpp.
Referenced by combatant::no_death_fight(), and combatant::one_strike_fight().

| Generated by doxygen 1.7.1 on Wed May 23 2012 01:03:42 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |