A single unit type that the player may recruit.
This class represents a single unit of a specific type.
static std::string unit_level_tooltip(const int level, const std::vector< std::string > &adv_to_types, const std::vector< config > &adv_to_mods)
bool will_certainly_advance(const unit_map::iterator &u)
Encapsulates the logic for deciding whether an iterator u points to a unit that can advance.
std::string resistance_color(const int resistance)
Maps resistance <= -60 (resistance value <= -60%) to intense red.
std::string format_level_string(const int level, bool recallable)
std::string check_recruit_list(const std::string &type, int side_number, const map_location &target_hex)
std::string format_movement_string(const int moves_left, const int moves_max, bool active)
std::string check_recruit_purse(int unit_cost, int current_purse, int investments)
int planned_gold_spent(int side_number)
std::string maybe_inactive(const std::string &str, bool active)
int number_of_possible_advances(const unit &u)
Determines the total number of available advancements (of any kind) for a given unit.
std::string format_cost_string(int unit_recall_cost, bool active)
std::tuple< std::string, map_location, map_location > validate_recruit_target(const std::string &type, int side_number, const map_location &target_hex)
Verifies that target_hex is a valid recruit location for the given side.
Encapsulates the map of the game.