ksquares
ksquareswindow.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef KSQUARESWINDOW_H
00011 #define KSQUARESWINDOW_H
00012
00013 #include <KXmlGuiWindow>
00014
00015 #include "ksquaresgame.h"
00016 #include "ui_prefs_ai.h"
00017 #include "ui_prefs_display.h"
00018
00019 class KToggleAction;
00020 class GameBoardView;
00021 class GameBoardScene;
00022
00031 class KSquaresWindow : public KXmlGuiWindow
00032 {
00033 Q_OBJECT
00034
00035 public:
00037 KSquaresWindow();
00038 ~KSquaresWindow();
00039
00040 public slots:
00041 void showHighscores();
00042
00044 void gameNew();
00046 void gameReset();
00047
00048 private slots:
00049 void aiChooseLine();
00050 void initObject();
00051 void optionsPreferences();
00052 void playerTakeTurn(KSquaresPlayer* currentPlayer);
00053 void gameOver(const QVector<KSquaresPlayer> &_playerList);
00054
00055 private:
00056
00057 void setupActions();
00058 Ui::prefs_ai ui_prefs_ai;
00059 Ui::prefs_display ui_prefs_display;
00061 GameBoardView *m_view;
00063 GameBoardScene *m_scene;
00065 KSquaresGame* sGame;
00066
00067
00068
00069 };
00070
00071 #endif // KSQUARESWINDOW_H