• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegames API Reference
  • KDE Home
  • Contact Us
 

ksquares

  • sources
  • kde-4.14
  • kdegames
  • ksquares
  • src
ksquaresdemowindow.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2006 by Matthew Williams <matt@milliams.com> *
3  * *
4  * This program is free software; you can redistribute it and/or modify *
5  * it under the terms of the GNU General Public License as published by *
6  * the Free Software Foundation; either version 2 of the License, or *
7  * (at your option) any later version. *
8  ***************************************************************************/
9 
10 #ifndef KSQUARESDEMOWINDOW_H
11 #define KSQUARESDEMOWINDOW_H
12 
13 #include <KXmlGuiWindow>
14 
15 #include "ksquaresgame.h"
16 
17 class GameBoardView;
18 class GameBoardScene;
19 
28 class KSquaresDemoWindow : public KXmlGuiWindow
29 {
30  Q_OBJECT
31 
32  public:
34  KSquaresDemoWindow();
35 
36  public slots:
37  void gameNew();
38 
39  private slots:
40  void aiChooseLine();
41  void playerTakeTurn(KSquaresPlayer* currentPlayer);
42  void gameOver(const QVector<KSquaresPlayer> & /*playerList*/);
43 
44  private:
46  GameBoardView *m_view;
48  GameBoardScene *m_scene;
50  KSquaresGame* sGame;
51 };
52 
53 #endif // KSQUARESDEMOWINDOW_H
KSquaresPlayer
Player class for KSquares.
Definition: ksquaresplayer.h:23
KSquaresGame
The game controller.
Definition: ksquaresgame.h:44
GameBoardScene
Scene for displaying the game board.
Definition: gameboardscene.h:27
KSquaresDemoWindow
Mainwindow class for demonstration mode.
Definition: ksquaresdemowindow.h:28
KSquaresDemoWindow::KSquaresDemoWindow
KSquaresDemoWindow()
Constructor.
Definition: ksquaresdemowindow.cpp:28
KSquaresDemoWindow::gameNew
void gameNew()
Definition: ksquaresdemowindow.cpp:46
KXmlGuiWindow
ksquaresgame.h
QVector< KSquaresPlayer >
GameBoardView
Actual game board widget.
Definition: gameboardview.h:25
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

ksquares

Skip menu "ksquares"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdegames API Reference

Skip menu "kdegames API Reference"
  • granatier
  • kapman
  • kblackbox
  • kgoldrunner
  • kigo
  • kmahjongg
  • KShisen
  • ksquares
  • libkdegames
  •   highscore
  •   libkdegamesprivate
  •     kgame
  • libkmahjongg
  • palapeli
  •   libpala

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal