Simulate combat to calculate attacks. More...
#include <cfloat>
#include "attack_prediction.hpp"
#include "actions/attack.hpp"
#include "game_config.hpp"
#include <array>
Go to the source code of this file.
Classes | |
struct | combatant::combat_slice |
A struct to describe one possible combat scenario. More... | |
Macros | |
#define | debug(x) |
Simulate combat to calculate attacks.
This can be compiled as a stand-alone program to either verify correctness or to benchmark performance.
Compile with -O3 -DBENCHMARK for speed testing, and with -DCHECK for testing correctness (redirect the output to a file, then compile utils/wesnoth-attack-sim.c and run that with the arguments –check <file name>). For either option, use -DHUMAN_READABLE if you want to see the results from each combat displayed in a prettier format (but no longer suitable for wesnoth-attack-sim.c).
Definition in file attack_prediction.cpp.
#define debug | ( | x | ) |
Definition at line 59 of file attack_prediction.cpp.
Referenced by ai::typesafe_known_aspect< T >::add_facet(), game_lua_kernel::intf_find_cost_map(), ai::typesafe_known_aspect< T >::set(), combatant::split_summary(), and ai::standard_aspect< config >::standard_aspect().