The Battle for Wesnoth 1.21.0-dev
 
Loading...
Searching...
No Matches
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.
 
int operator() (const upkeep_loyal &) const
 Loyal units cost no upkeep.
 
int operator() (int v) const
 

Private Attributes

const unit & u_
 

Detailed Description

Visitor helper class to fetch the appropriate upkeep value.

Definition at line 1077 of file unit.hpp.


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