diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-04-30 11:07:25 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-04-30 11:07:25 +0200 |
| commit | adaba10aa7d8e504d3d10bfda42cb79b3ade459e (patch) | |
| tree | 98ac5394d509cc8cfa337afca3b74f60e6cf0b6c /core/src | |
| parent | 3e68879c7901384913c03bd587b248a3fd79d9ff (diff) | |
| download | turns-adaba10aa7d8e504d3d10bfda42cb79b3ade459e.tar.xz turns-adaba10aa7d8e504d3d10bfda42cb79b3ade459e.zip | |
core: add getters and setters for Participant
Diffstat (limited to 'core/src')
| -rw-r--r-- | core/src/participant.cpp | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/core/src/participant.cpp b/core/src/participant.cpp index d4b3835..343d461 100644 --- a/core/src/participant.cpp +++ b/core/src/participant.cpp @@ -53,6 +53,56 @@ namespace turns::core return m_priority <=> other.m_priority; } + auto Participant::get_disposition() const -> disposition + { + return m_disposition.get_value(); + } + + auto Participant::get_is_active() const -> bool + { + return m_is_active.get_value(); + } + + auto Participant::get_is_defeated() const -> bool + { + return m_is_defeated.get_value(); + } + + auto Participant::get_name() const -> Glib::ustring + { + return m_name.get_value(); + } + + auto Participant::get_priority() const -> float + { + return m_priority.get_value(); + } + + auto Participant::set_disposition(disposition value) -> void + { + return m_disposition.set_value(value); + } + + auto Participant::set_is_active(bool value) -> void + { + return m_is_active.set_value(value); + } + + auto Participant::set_is_defeated(bool value) -> void + { + return m_is_defeated.set_value(value); + } + + auto Participant::set_name(Glib::ustring const & value) -> void + { + return m_name.set_value(value); + } + + auto Participant::set_priority(float value) -> void + { + return m_priority.set_value(value); + } + auto Participant::serialize() -> nlohmann::json { return nlohmann::json{ |
