The Battle for Wesnoth  1.19.0-dev
Public Member Functions | Public Attributes | List of all members
ai::default_recruitment::cached_combat_value Struct Reference

#include <recruitment.hpp>

Public Member Functions

 cached_combat_value (double a_def, double b_def, double v)
 
bool operator< (const cached_combat_value &o) const
 

Public Attributes

double a_defense
 
double b_defense
 
double value
 

Detailed Description

Definition at line 84 of file recruitment.hpp.

Constructor & Destructor Documentation

◆ cached_combat_value()

ai::default_recruitment::cached_combat_value::cached_combat_value ( double  a_def,
double  b_def,
double  v 
)
inline

Definition at line 88 of file recruitment.hpp.

Member Function Documentation

◆ operator<()

bool ai::default_recruitment::cached_combat_value::operator< ( const cached_combat_value o) const
inline

Definition at line 91 of file recruitment.hpp.

References value.

Member Data Documentation

◆ a_defense

double ai::default_recruitment::cached_combat_value::a_defense

Definition at line 85 of file recruitment.hpp.

◆ b_defense

double ai::default_recruitment::cached_combat_value::b_defense

Definition at line 86 of file recruitment.hpp.

◆ value

double ai::default_recruitment::cached_combat_value::value

Definition at line 87 of file recruitment.hpp.

Referenced by operator<().


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