From 4c5d17bc8e6fceeb6fd9cc45c10f07b7bc639f49 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Wed, 25 Sep 2024 18:21:09 +0200 Subject: core: add "is-" prefix to "::active" and "::defeated" --- core/include/turns/core/participant.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'core/include') diff --git a/core/include/turns/core/participant.hpp b/core/include/turns/core/participant.hpp index 23d6211..c21aa8b 100644 --- a/core/include/turns/core/participant.hpp +++ b/core/include/turns/core/participant.hpp @@ -24,27 +24,22 @@ namespace turns::core auto operator<=>(participant const & other) const noexcept -> std::partial_ordering; - auto defeated(this auto && self); auto disposition(this auto && self); auto is_active(this auto && self); + auto is_defeated(this auto && self); auto name(this auto && self); auto priority(this auto && self); auto serialize() -> nlohmann::json; private: - Glib::Property m_defeated{*this, "defeated", false}; Glib::Property m_disposition{*this, "disposition", core::disposition::neutral}; - Glib::Property m_is_active{*this, "active", false}; + Glib::Property m_is_active{*this, "is-active", false}; + Glib::Property m_is_defeated{*this, "is-defeated", false}; Glib::Property m_name{*this, "name", ""}; Glib::Property m_priority{*this, "priority", 0.0f}; }; - auto participant::defeated(this auto && self) - { - return self.m_defeated.get_proxy(); - } - auto participant::disposition(this auto && self) { return self.m_disposition.get_proxy(); @@ -55,6 +50,11 @@ namespace turns::core return self.m_is_active.get_proxy(); } + auto participant::is_defeated(this auto && self) + { + return self.m_is_defeated.get_proxy(); + } + auto participant::name(this auto && self) { return self.m_name.get_proxy(); -- cgit v1.2.3