aboutsummaryrefslogtreecommitdiff
path: root/core/src/disposition.cpp
blob: 81fb4108f12301eb0efefd3bdf2eaea0552bd316 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include "turns/core/disposition.hpp"

#include <glibmm/i18n.h>
#include <glibmm/ustring.h>

namespace turns::core
{

  auto presentation_name_for(disposition value) -> Glib::ustring
  {
    switch (value)
    {
    case disposition::neutral:
      return _("Neutral");
    case disposition::friendly:
      return _("Friendly");
    case disposition::hostile:
      return _("Hostile");
    case disposition::secret:
      return _("Secret");
    default:
      return _("Unknown disposition value");
    }
  }

}  // namespace turns::core