summaryrefslogtreecommitdiff
path: root/core/include
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2024-09-25 18:21:09 +0200
committerFelix Morgner <felix.morgner@gmail.com>2024-09-25 18:21:09 +0200
commit4c5d17bc8e6fceeb6fd9cc45c10f07b7bc639f49 (patch)
treebc70b691cae584464b214f11f3972423b3943565 /core/include
parentcbbf1f1353eb55ee459d40f77b765adaf70df401 (diff)
downloadturns-4c5d17bc8e6fceeb6fd9cc45c10f07b7bc639f49.tar.xz
turns-4c5d17bc8e6fceeb6fd9cc45c10f07b7bc639f49.zip
core: add "is-" prefix to "::active" and "::defeated"
Diffstat (limited to 'core/include')
-rw-r--r--core/include/turns/core/participant.hpp16
1 files changed, 8 insertions, 8 deletions
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<bool> m_defeated{*this, "defeated", false};
Glib::Property<core::disposition> m_disposition{*this, "disposition", core::disposition::neutral};
- Glib::Property<bool> m_is_active{*this, "active", false};
+ Glib::Property<bool> m_is_active{*this, "is-active", false};
+ Glib::Property<bool> m_is_defeated{*this, "is-defeated", false};
Glib::Property<Glib::ustring> m_name{*this, "name", ""};
Glib::Property<float> 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();