From 3e68879c7901384913c03bd587b248a3fd79d9ff Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Wed, 30 Apr 2025 11:01:48 +0200 Subject: core: rename participant to Participant --- core/include/turns/core/fwd.hpp | 2 +- core/include/turns/core/participant.hpp | 22 +++++++++++----------- core/include/turns/core/turn_order.hpp | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) (limited to 'core/include') diff --git a/core/include/turns/core/fwd.hpp b/core/include/turns/core/fwd.hpp index 1646d4b..612e8c8 100644 --- a/core/include/turns/core/fwd.hpp +++ b/core/include/turns/core/fwd.hpp @@ -7,7 +7,7 @@ namespace turns::core { enum struct disposition : std::uint8_t; - struct participant; + struct Participant; struct turn_order; } // namespace turns::core diff --git a/core/include/turns/core/participant.hpp b/core/include/turns/core/participant.hpp index a7eb98d..2c02b1b 100644 --- a/core/include/turns/core/participant.hpp +++ b/core/include/turns/core/participant.hpp @@ -14,15 +14,15 @@ namespace turns::core { - struct participant : Glib::Object + struct Participant : Glib::Object { - auto static create(Glib::ustring name, float priority, disposition disposition) -> Glib::RefPtr; - auto static create(nlohmann::json const & serialized) -> Glib::RefPtr; + auto static create(Glib::ustring name, float priority, disposition disposition) -> Glib::RefPtr; + auto static create(nlohmann::json const & serialized) -> Glib::RefPtr; - participant(); - participant(Glib::ustring name, float priority, disposition disposition); + Participant(); + Participant(Glib::ustring name, float priority, disposition disposition); - auto operator<=>(participant const & other) const noexcept -> std::partial_ordering; + auto operator<=>(Participant const & other) const noexcept -> std::partial_ordering; auto property_disposition(this auto && self); auto property_is_active(this auto && self); @@ -40,27 +40,27 @@ namespace turns::core Glib::Property m_priority{*this, "priority", 0.0f}; }; - auto participant::property_disposition(this auto && self) + auto Participant::property_disposition(this auto && self) { return self.m_disposition.get_proxy(); } - auto participant::property_is_active(this auto && self) + auto Participant::property_is_active(this auto && self) { return self.m_is_active.get_proxy(); } - auto participant::property_is_defeated(this auto && self) + auto Participant::property_is_defeated(this auto && self) { return self.m_is_defeated.get_proxy(); } - auto participant::property_name(this auto && self) + auto Participant::property_name(this auto && self) { return self.m_name.get_proxy(); } - auto participant::property_priority(this auto && self) + auto Participant::property_priority(this auto && self) { return self.m_priority.get_proxy(); } diff --git a/core/include/turns/core/turn_order.hpp b/core/include/turns/core/turn_order.hpp index 5e38d0c..6a0ee43 100644 --- a/core/include/turns/core/turn_order.hpp +++ b/core/include/turns/core/turn_order.hpp @@ -24,7 +24,7 @@ namespace turns::core struct turn_order : Gio::ListModel, Glib::Object { - using value_type = Glib::RefPtr; + using value_type = Glib::RefPtr; using container_type = std::vector; using iterator = container_type::iterator; using const_iterator = container_type::const_iterator; -- cgit v1.2.3