File indexing completed on 2024-12-08 03:47:31
0001 /* 0002 This file is part of KsirK. 0003 SPDX-FileCopyrightText: 2023 Friedrich W. H. Kossebau <kossebau@kde.org> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #ifndef KSIRK_GAMELOGIC_GAMESEQUENCE_H 0009 #define KSIRK_GAMELOGIC_GAMESEQUENCE_H 0010 0011 // KDEGames 0012 #define USE_UNSTABLE_LIBKDEGAMESPRIVATE_API 0013 #include <libkdegamesprivate/kgame/kgamesequence.h> 0014 0015 namespace Ksirk { 0016 0017 namespace GameLogic { 0018 0019 class GameAutomaton; 0020 0021 class GameSequence : public KGameSequence 0022 { 0023 Q_OBJECT 0024 0025 public: 0026 explicit GameSequence(GameAutomaton *gameAutomation); 0027 ~GameSequence() override; 0028 0029 public: 0030 KPlayer *nextPlayer(KPlayer *last, bool exclusive = true) override; 0031 0032 private: 0033 GameAutomaton *const m_gameAutomation; 0034 }; 0035 0036 } 0037 } 0038 0039 #endif