Defines | Functions

attack_prediction.cpp File Reference

Simulate combat to calculate attacks. More...

#include <cfloat>
#include "attack_prediction.hpp"
#include "actions.hpp"
#include "game_config.hpp"
Include dependency graph for attack_prediction.cpp:

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)

Detailed Description

Simulate combat to calculate attacks.

Standalone program, benchmark.

Definition in file attack_prediction.cpp.


Define Documentation

#define debug (   x  ) 

Function Documentation

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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