From a4e62c525fdc6b9662cdd48aaef2de7e9376f062 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sat, 17 Aug 2024 22:17:32 +0200 Subject: core: add ::skip-defeated property --- core/include/turns/core/turn_order.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/include') diff --git a/core/include/turns/core/turn_order.hpp b/core/include/turns/core/turn_order.hpp index 52a7268..5e38d0c 100644 --- a/core/include/turns/core/turn_order.hpp +++ b/core/include/turns/core/turn_order.hpp @@ -36,6 +36,7 @@ namespace turns::core using is_running_type = bool; using progress_type = double; using round_number_type = unsigned int; + using skip_defeated_type = bool; auto static constexpr invalid_participant_index = std::numeric_limits::max(); auto static constexpr invalid_round_number = std::numeric_limits::max(); @@ -53,6 +54,7 @@ namespace turns::core auto is_running() const -> Glib::PropertyProxy_ReadOnly; auto progress() const -> Glib::PropertyProxy_ReadOnly; auto round_number() const -> Glib::PropertyProxy_ReadOnly; + auto skip_defeated() -> Glib::PropertyProxy; /** Element Modifications */ auto add(Glib::ustring const & name, float priority, disposition disposition) -> void; @@ -92,6 +94,7 @@ namespace turns::core Glib::Property m_is_running{*this, "is-running", false}; Glib::Property m_progress{*this, "progress", 0.0}; Glib::Property m_round_number{*this, "round-number", invalid_round_number}; + Glib::Property m_skip_defeated{*this, "skip-defeated", false}; }; } // namespace turns::core -- cgit v1.2.3