The Battle for Wesnoth  1.19.7+dev
Public Member Functions | Private Attributes | List of all members
unit::upkeep_value_visitor Class Reference

Visitor helper class to fetch the appropriate upkeep value. More...

#include <unit.hpp>

Public Member Functions

 upkeep_value_visitor (const unit &unit)
 
int operator() (const upkeep_full &) const
 Full upkeep equals the unit's level. More...
 
int operator() (const upkeep_loyal &) const
 Loyal units cost no upkeep. More...
 
int operator() (int v) const
 

Private Attributes

const unitu_
 

Detailed Description

Visitor helper class to fetch the appropriate upkeep value.

Definition at line 1185 of file unit.hpp.


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