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