1 | /* |
2 | * Copyright (C) 2010 Parker Coates <coates@kde.org> |
3 | * |
4 | * This program is free software; you can redistribute it and/or |
5 | * modify it under the terms of the GNU General Public License as |
6 | * published by the Free Software Foundation; either version 2 of |
7 | * the License, or (at your option) any later version. |
8 | * |
9 | * This program is distributed in the hope that it will be useful, |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | * GNU General Public License for more details. |
13 | * |
14 | * You should have received a copy of the GNU General Public License |
15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 | * |
17 | */ |
18 | |
19 | #ifndef PILEUTILS_H |
20 | #define PILEUTILS_H |
21 | class KCard; |
22 | |
23 | #include <QList> |
24 | |
25 | |
26 | bool isSameSuitAscending( const QList<KCard*> & cards ); |
27 | bool isSameSuitDescending( const QList<KCard*> & cards ); |
28 | bool isAlternateColorDescending( const QList<KCard*> & cards ); |
29 | |
30 | bool checkAddSameSuitAscendingFromAce( const QList<KCard*> & oldCards, const QList<KCard*> & newCards ); |
31 | bool checkAddAlternateColorDescending( const QList<KCard*> & oldCards, const QList<KCard*> & newCards ); |
32 | bool checkAddAlternateColorDescendingFromKing( const QList<KCard*> & oldCards, const QList<KCard*> & newCards ); |
33 | |
34 | #endif |
35 | |