diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-04-30 11:01:48 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-04-30 11:01:48 +0200 |
| commit | 3e68879c7901384913c03bd587b248a3fd79d9ff (patch) | |
| tree | 3aa3395d6c84b064c60ad19f5d274a5d2bd575d4 /core/include | |
| parent | f729c62bf23061e33a362ef1322d8fed8ae632b1 (diff) | |
| download | turns-3e68879c7901384913c03bd587b248a3fd79d9ff.tar.xz turns-3e68879c7901384913c03bd587b248a3fd79d9ff.zip | |
core: rename participant to Participant
Diffstat (limited to 'core/include')
| -rw-r--r-- | core/include/turns/core/fwd.hpp | 2 | ||||
| -rw-r--r-- | core/include/turns/core/participant.hpp | 22 | ||||
| -rw-r--r-- | core/include/turns/core/turn_order.hpp | 2 |
3 files changed, 13 insertions, 13 deletions
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<participant>; - auto static create(nlohmann::json const & serialized) -> Glib::RefPtr<participant>; + auto static create(Glib::ustring name, float priority, disposition disposition) -> Glib::RefPtr<Participant>; + auto static create(nlohmann::json const & serialized) -> Glib::RefPtr<Participant>; - 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<float> 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<participant>; + using value_type = Glib::RefPtr<Participant>; using container_type = std::vector<value_type>; using iterator = container_type::iterator; using const_iterator = container_type::const_iterator; |
