1 | /*************************************************************************** |
2 | * KBlocks, a falling blocks game for KDE * |
3 | * Copyright (C) 2010 Zhongjie Cai <squall.leonhart.cai@gmail.com> * |
4 | * * |
5 | * This program is free software; you can redistribute it and/or modify * |
6 | * it under the terms of the GNU General Public License as published by * |
7 | * the Free Software Foundation; either version 2 of the License, or * |
8 | * (at your option) any later version. * |
9 | ***************************************************************************/ |
10 | #ifndef KBLOCKSDUMMYAI_H |
11 | #define KBLOCKSDUMMYAI_H |
12 | |
13 | #include "GamePlayerInterface.h" |
14 | |
15 | class KBlocksDummyAI : public GamePlayerInterface |
16 | { |
17 | public: |
18 | KBlocksDummyAI(); |
19 | ~KBlocksDummyAI(); |
20 | |
21 | public: |
22 | void startGame(SingleGameInterface * p); |
23 | void stopGame(); |
24 | |
25 | void pauseGame(bool flag); |
26 | |
27 | void think(GamePlayer_ActionList * actionList); |
28 | |
29 | protected: |
30 | SingleGameInterface* mpGame; |
31 | bool mPauseFlag; |
32 | |
33 | int mFieldWidth; |
34 | int mRotateCount; |
35 | }; |
36 | |
37 | #endif |
38 | |