The Battle for Wesnoth  1.17.0-dev
Functions
orb_status_helper Namespace Reference

Functions

bool prefs_show_orb (orb_status os)
 Wrapper for the various preferences::show_..._orb() methods, using the enum instead of exposing a separate function for each preference. More...
 
std::string get_orb_color (orb_status os)
 Wrapper for the various preferences::unmoved_color(), moved_color(), etc methods, using the enum instead of exposing a separate function for each preference. More...
 

Function Documentation

◆ get_orb_color()

std::string orb_status_helper::get_orb_color ( orb_status  os)

Wrapper for the various preferences::unmoved_color(), moved_color(), etc methods, using the enum instead of exposing a separate function for each preference.

Definition at line 40 of file orb_status.cpp.

References allied, preferences::allied_color(), disengaged, preferences::disengaged_color(), enemy, preferences::enemy_color(), moved, preferences::moved_color(), partial, preferences::partial_color(), unmoved, and preferences::unmoved_color().

Referenced by display::draw_minimap_units().

◆ prefs_show_orb()

bool orb_status_helper::prefs_show_orb ( orb_status  os)

Wrapper for the various preferences::show_..._orb() methods, using the enum instead of exposing a separate function for each preference.

Definition at line 19 of file orb_status.cpp.

References allied, disengaged, enemy, moved, partial, preferences::show_allied_orb(), preferences::show_disengaged_orb(), preferences::show_enemy_orb(), preferences::show_moved_orb(), preferences::show_partial_orb(), preferences::show_unmoved_orb(), and unmoved.