File indexing completed on 2024-04-28 04:02:09

0001 /*
0002     This file is part of the KDE games kwin4 program
0003     SPDX-FileCopyrightText: 2022 Friedrich W. H. Kossebau <kossebau@kde.org>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 
0008 #include "kwin4gamesequence.h"
0009 
0010 // own
0011 #include "kwin4doc.h"
0012 
0013 KWin4GameSequence::KWin4GameSequence(KWin4Doc *game)
0014     : m_game(game)
0015 {
0016 }
0017 
0018 KWin4GameSequence::~KWin4GameSequence() = default;
0019 
0020 KPlayer *KWin4GameSequence::nextPlayer(KPlayer *last, bool exclusive)
0021 {
0022     return m_game->doNextPlayer(last, exclusive);
0023 }
0024 
0025 int KWin4GameSequence::checkGameOver(KPlayer *player)
0026 {
0027     return m_game->doCheckGameOver(player);
0028 }
0029 
0030 #include "moc_kwin4gamesequence.cpp"