ksquares
ksquaresdemowindow.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * Copyright (C) 2006 by Matthew Williams <matt@milliams.com> * 00003 * * 00004 * This program is free software; you can redistribute it and/or modify * 00005 * it under the terms of the GNU General Public License as published by * 00006 * the Free Software Foundation; either version 2 of the License, or * 00007 * (at your option) any later version. * 00008 ***************************************************************************/ 00009 00010 #ifndef KSQUARESDEMOWINDOW_H 00011 #define KSQUARESDEMOWINDOW_H 00012 00013 #include <KXmlGuiWindow> 00014 00015 #include "ksquaresgame.h" 00016 00017 class GameBoardView; 00018 class GameBoardScene; 00019 00028 class KSquaresDemoWindow : public KXmlGuiWindow 00029 { 00030 Q_OBJECT 00031 00032 public: 00034 KSquaresDemoWindow(); 00035 00036 public slots: 00037 void gameNew(); 00038 00039 private slots: 00040 void aiChooseLine(); 00041 void playerTakeTurn(KSquaresPlayer* currentPlayer); 00042 void gameOver(const QVector<KSquaresPlayer> & /*playerList*/); 00043 00044 private: 00046 GameBoardView *m_view; 00048 GameBoardScene *m_scene; 00050 KSquaresGame* sGame; 00051 }; 00052 00053 #endif // KSQUARESDEMOWINDOW_H
KDE 4.0 API Reference