From 7e6a6871dc6a17a3e112291e53c90ae54bbdee83 Mon Sep 17 00:00:00 2001 From: RickyRister Date: Sat, 21 Jun 2025 22:43:26 -0700 Subject: [PATCH] Add docs --- .../src/client/ui/picture_loader/picture_to_load.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cockatrice/src/client/ui/picture_loader/picture_to_load.cpp b/cockatrice/src/client/ui/picture_loader/picture_to_load.cpp index 208a3ed3a..9bbe50e82 100644 --- a/cockatrice/src/client/ui/picture_loader/picture_to_load.cpp +++ b/cockatrice/src/client/ui/picture_loader/picture_to_load.cpp @@ -84,6 +84,11 @@ void PictureToLoad::populateSetUrls() (void)nextUrl(); } +/** + * Advances the currentSet to the next set in the list. Then repopulates the url list with the urls from that set. + * If we are already at the end of the list, then currentSet is set to empty. + * @return If we are already at the end of the list + */ bool PictureToLoad::nextSet() { if (!sortedSets.isEmpty()) { @@ -95,6 +100,11 @@ bool PictureToLoad::nextSet() return false; } +/** + * Advances the currentUrl to the next url in the list. + * If we are already at the end of the list, then currentUrl is set to empty. + * @return If we are already at the end of the list + */ bool PictureToLoad::nextUrl() { if (!currentSetUrls.isEmpty()) {