summaryrefslogtreecommitdiff
path: root/core/include
diff options
context:
space:
mode:
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();