The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
combatant::combat_slice Struct Reference

A struct to describe one possible combat scenario. More...

Public Member Functions

 combat_slice (const std::vector< double > src_summary[2], unsigned begin, unsigned end, unsigned num_strikes)
 Creates a slice from a summary, and associates a number of strikes. More...
 
 combat_slice (const std::vector< double > src_summary[2], unsigned num_strikes)
 Creates a slice from the summaries, and associates a number of strikes. More...
 

Public Attributes

unsigned begin_hp
 
unsigned end_hp
 
double prob
 
unsigned strikes
 

Detailed Description

A struct to describe one possible combat scenario.

(Needed when the number of attacks can vary due to swarm.)

Definition at line 992 of file attack_prediction.cpp.

Constructor & Destructor Documentation

combatant::combat_slice::combat_slice ( const std::vector< double >  src_summary[2],
unsigned  begin,
unsigned  end,
unsigned  num_strikes 
)

Creates a slice from a summary, and associates a number of strikes.

Definition at line 1013 of file attack_prediction.cpp.

References i.

combatant::combat_slice::combat_slice ( const std::vector< double >  src_summary[2],
unsigned  num_strikes 
)

Creates a slice from the summaries, and associates a number of strikes.

This version of the constructor creates a slice consisting of everything.

Definition at line 1044 of file attack_prediction.cpp.

Member Data Documentation

unsigned combatant::combat_slice::begin_hp

Definition at line 995 of file attack_prediction.cpp.

unsigned combatant::combat_slice::end_hp

Definition at line 996 of file attack_prediction.cpp.

double combatant::combat_slice::prob

Definition at line 999 of file attack_prediction.cpp.

unsigned combatant::combat_slice::strikes

Definition at line 1002 of file attack_prediction.cpp.


The documentation for this struct was generated from the following file: