File indexing completed on 2024-04-28 07:51:24

0001 /***************************************************************************
0002 *   KBlocks, a falling blocks game by KDE                                *
0003 *   SPDX-FileCopyrightText: 2010 Zhongjie Cai <squall.leonhart.cai@gmail.com>       *
0004 *                                                                         *
0005 *   SPDX-License-Identifier: GPL-2.0-or-later
0006 ***************************************************************************/
0007 #ifndef KBLOCKSDUMMYAI_H
0008 #define KBLOCKSDUMMYAI_H
0009 
0010 #include "GamePlayerInterface.h"
0011 
0012 class KBlocksDummyAI : public GamePlayerInterface
0013 {
0014 public:
0015     KBlocksDummyAI();
0016     ~KBlocksDummyAI() override;
0017 
0018 public:
0019     void startGame(SingleGameInterface *p) override;
0020     void stopGame() override;
0021 
0022     void pauseGame(bool flag) override;
0023 
0024     void think(GamePlayer_ActionList *actionList) override;
0025 
0026 protected:
0027     bool mPauseFlag;
0028 
0029     int mFieldWidth;
0030     int mRotateCount;
0031 };
0032 
0033 #endif