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 unit & | u_ |
Visitor helper class to fetch the appropriate upkeep value.