mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-05 07:35:12 -04:00
added patience plugin
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2245 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
024e7f4b44
commit
0b78ed6ff8
430 changed files with 7336 additions and 0 deletions
29
plugins/patience_plugin/Patience/Siegkontrolle.cpp
Normal file
29
plugins/patience_plugin/Patience/Siegkontrolle.cpp
Normal file
|
@ -0,0 +1,29 @@
|
|||
#include "Siegkontrolle.h"
|
||||
#include "Basisstapel.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
Siegkontrolle::Siegkontrolle(QObject *parent) : QObject(parent)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Siegkontrolle::~Siegkontrolle()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void Siegkontrolle::teste_auf_sieg()
|
||||
{
|
||||
// wenn alle zielstapel 13 karten enthalten hat der spieler gewonnen
|
||||
if (zielstapel.at(0)->karten() == 13 && zielstapel.at(1)->karten() == 13 && zielstapel.at(2)->karten() == 13 && zielstapel.at(3)->karten() == 13) emit gewonnen();
|
||||
}
|
||||
|
||||
|
||||
void Siegkontrolle::registriere_zielstapel(Basisstapel* kreutzstapel, Basisstapel* pikstapel, Basisstapel* herzstapel, Basisstapel* karostapel)
|
||||
{
|
||||
zielstapel.append(kreutzstapel);
|
||||
zielstapel.append(pikstapel);
|
||||
zielstapel.append(herzstapel);
|
||||
zielstapel.append(karostapel);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue