The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Macros | Enumerations
attack_prediction.cpp File Reference

Simulate combat to calculate attacks. More...

#include "attack_prediction.hpp"
#include "actions/attack.hpp"
#include "game_config.hpp"
#include "log.hpp"
#include "preferences/general.hpp"
#include "random.hpp"
#include "serialization/string_utils.hpp"
#include "utils/general.hpp"
#include <array>
#include <cfloat>
#include <cmath>
#include <iostream>
#include <memory>
#include <numeric>
#include <sstream>
Include dependency graph for attack_prediction.cpp:

Go to the source code of this file.

Macros

#define debug(x)
 

Enumerations

enum  attack_prediction_mode
 

Detailed Description

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.

Macro Definition Documentation

#define debug (   x)

Enumeration Type Documentation

Definition at line 1716 of file attack_prediction.cpp.