From 97c74a7c43bcc7e0551a967c6fa2720e9cb58efb Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 12 May 2025 17:02:36 +0200 Subject: lib: add active and defeated properties to Turns.Participant --- lib/src/turns-participant.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'lib/src/turns-participant.h') diff --git a/lib/src/turns-participant.h b/lib/src/turns-participant.h index a2af8d6..a0e0d98 100644 --- a/lib/src/turns-participant.h +++ b/lib/src/turns-participant.h @@ -31,6 +31,22 @@ TurnsParticipant * turns_participant_new() G_GNUC_WARN_UNUSED_RESULT; */ TurnsParticipant * turns_participant_new_with(gchar const * name, gfloat priority, TurnsDisposition disposition) G_GNUC_WARN_UNUSED_RESULT; +/** + * @brief Get the active state of a participant. + * + * @param self A Participant instance. The value *must not* be NULL. + * @return The active state of the instance. + */ +gboolean turns_participant_get_active(TurnsParticipant const * self); + +/** + * @brief Get the defeated state of a participant. + * + * @param self A Participant instance. The value *must not* be NULL. + * @return The defeated state of the instance. + */ +gboolean turns_participant_get_defeated(TurnsParticipant const * self); + /** * @brief Get the disposition of a participant. * @@ -55,6 +71,22 @@ gchar const * turns_participant_get_name(TurnsParticipant const * self); */ gfloat turns_participant_get_priority(TurnsParticipant const * self); +/** + * @brief Set the active state of a participant. + * + * @param self A Participant instance. The value *must not* be NULL. + * @return The new active state. + */ +void turns_participant_set_active(TurnsParticipant * self, gboolean value); + +/** + * @brief Set the defeated state of a participant. + * + * @param self A Participant instance. The value *must not* be NULL. + * @param value The new defeated state. + */ +void turns_participant_set_defeated(TurnsParticipant * self, gboolean value); + /** * @brief Set the disposition of a participant. * -- cgit v1.2.3