Cockatrice/libcockatrice_interfaces/libcockatrice/interfaces/interface_game_settings_provider.h
Lukas Brübach 17a1f8cf78 [Client] Add shuffle players option and turn order dialog
Adds the 'Shuffle players at start' checkbox to game creation and a
host-only 'Set turn order...' action that opens a dialog to reorder or
randomize the seats before the game starts. Seating changes are shown in
the game's message log.
2026-11-02 23:58:53 +01:00

30 lines
1.4 KiB
C++

#ifndef COCKATRICE_INTERFACE_GAME_SETTINGS_PROVIDER_H
#define COCKATRICE_INTERFACE_GAME_SETTINGS_PROVIDER_H
#include <QString>
class IGameSettingsProvider
{
public:
virtual ~IGameSettingsProvider() = default;
[[nodiscard]] virtual QString getGameDescription() const = 0;
[[nodiscard]] virtual int getMaxPlayers() const = 0;
[[nodiscard]] virtual QString getGameTypes() const = 0;
[[nodiscard]] virtual bool getOnlyBuddies() const = 0;
[[nodiscard]] virtual bool getOnlyRegistered() const = 0;
[[nodiscard]] virtual bool getSpectatorsAllowed() const = 0;
[[nodiscard]] virtual bool getSpectatorsNeedPassword() const = 0;
[[nodiscard]] virtual bool getSpectatorsCanTalk() const = 0;
[[nodiscard]] virtual bool getSpectatorsCanSeeEverything() const = 0;
[[nodiscard]] virtual bool getCreateGameAsSpectator() const = 0;
[[nodiscard]] virtual int getDefaultStartingLifeTotal() const = 0;
[[nodiscard]] virtual bool getShareDecklistsOnLoad() const = 0;
[[nodiscard]] virtual bool getShufflePlayers() const = 0;
[[nodiscard]] virtual bool getRememberGameSettings() const = 0;
[[nodiscard]] virtual bool getLocalGameRememberSettings() const = 0;
[[nodiscard]] virtual int getLocalGameMaxPlayers() const = 0;
[[nodiscard]] virtual int getLocalGameStartingLifeTotal() const = 0;
};
#endif // COCKATRICE_INTERFACE_GAME_SETTINGS_PROVIDER_H