From 1ef96383c8f7ed136a0e028aef0835b4838b5e95 Mon Sep 17 00:00:00 2001 From: TrickyLeifa Date: Fri, 17 May 2024 16:39:30 +0200 Subject: Lightly reworked `NetworkManager`, ... * Lightly reworked `NetworkManager` * Added new modules to handle various connection types. * TCP * WebSocket * Added general string splitter alias based on Qt version. * Replaced `lobby_constructed` and `courtroom_constructed` * Refactored and partially reimplemented the following classes: * `AOBlipPlayer` * `AOEmotePreview` * `AOMusicPlayer` * `AOSfxPlayer` * `AOTextArea` --- src/aoapplication.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/aoapplication.h') diff --git a/src/aoapplication.h b/src/aoapplication.h index 1ff059b6..c8c24441 100644 --- a/src/aoapplication.h +++ b/src/aoapplication.h @@ -61,18 +61,17 @@ public: ~AOApplication(); NetworkManager *net_manager; - Lobby *w_lobby; - Courtroom *w_courtroom; + Lobby *w_lobby = nullptr; + Courtroom *w_courtroom = nullptr; AttorneyOnline::Discord *discord; QFont default_font; - bool lobby_constructed = false; - bool courtroom_constructed = false; - + bool is_lobby_constructed(); void construct_lobby(); void destruct_lobby(); + bool is_courtroom_constructed(); void construct_courtroom(); void destruct_courtroom(); -- cgit