1 /********************************************************************** 2 * 3 * FreeDoko a Doppelkopf-Game 4 * 5 * Copyright (C) 2001 – 2018 by Diether Knof and Borg Enders 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License as 9 * published by the Free Software Foundation; either version 2 of 10 * the License, or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * You can find this license in the file 'gpl.txt'. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program; if not, write to the Free Software 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 21 * MA 02111-1307 USA 22 * 23 * Contact: 24 * Diether Knof dknof@posteo.de 25 * 26 **********************************************************************/ 27 28 #pragma once 29 30 #include "exception.h" 31 32 enum class MarriageSelector { 33 team_set, 34 first_foreign, 35 first_trump, 36 first_color, 37 first_club, 38 first_spade, 39 first_heart, 40 silent 41 }; // enum class MarriageSelector 42 constexpr MarriageSelector marriage_selector_list[] = { 43 MarriageSelector::team_set, 44 MarriageSelector::first_foreign, 45 MarriageSelector::first_trump, 46 MarriageSelector::first_color, 47 MarriageSelector::first_club, 48 MarriageSelector::first_spade, 49 MarriageSelector::first_heart, 50 MarriageSelector::silent 51 }; 52 53 string to_string(MarriageSelector marriage_selector) noexcept; 54 string gettext(MarriageSelector marriage_selector); 55 ostream& operator<<(ostream& ostr, MarriageSelector marriage_selector); 56 MarriageSelector marriage_selector_from_string(string const& name); 57 bool operator!(MarriageSelector marriage_selector) noexcept; 58