The Battle for Wesnoth  1.19.2+dev
Functions
orb_status_helper Namespace Reference

Functions

bool prefs_show_orb (orb_status os)
 Wrapper for the various prefs::get().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 prefs::get().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 prefs::get().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, prefs::allied_color(), disengaged, enemy, prefs::enemy_color(), prefs::get(), moved, prefs::moved_color(), partial, prefs::partial_color(), unmoved, and prefs::unmoved_color().

Referenced by display::draw_minimap_units(), and image::prep_minimap_for_rendering().

◆ prefs_show_orb()

bool orb_status_helper::prefs_show_orb ( orb_status  os)

Wrapper for the various prefs::get().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, prefs::get(), moved, partial, prefs::show_ally_orb(), prefs::show_disengaged_orb(), prefs::show_enemy_orb(), prefs::show_moved_orb(), prefs::show_partial_orb(), prefs::show_unmoved_orb(), and unmoved.