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

libkdegames/libkdegamesprivate/kgame

  • sources
  • kde-4.14
  • kdegames
  • libkdegames
  • libkdegamesprivate
  • kgame
kgamesequence.h
Go to the documentation of this file.
1 /*
2  This file is part of the KDE games library
3  Copyright (C) 2003 Andreas Beckermann (b_mann@gmx.de)
4  Copyright (C) 2003 Martin Heni (kde at heni-online.de)
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License version 2 as published by the Free Software Foundation.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef __KGAMESEQUENCE_H_
22 #define __KGAMESEQUENCE_H_
23 
24 #include <QtCore/QObject>
25 
26 #include "../libkdegamesprivate_export.h"
27 
28 class KPlayer;
29 class KGame;
30 
44 class KDEGAMESPRIVATE_EXPORT KGameSequence : public QObject
45 {
46  Q_OBJECT
47 public:
48  KGameSequence();
49  virtual ~KGameSequence();
50 
56  virtual KPlayer* nextPlayer(KPlayer *last, bool exclusive = true);
57 
58  virtual void setCurrentPlayer(KPlayer* p);
59 
63  KGame* game() const;
64 
65  KPlayer* currentPlayer() const;
66 
72  void setGame(KGame* game);
73 
81  virtual int checkGameOver(KPlayer *player);
82 
83 private:
84  class KGameSequencePrivate;
85  KGameSequencePrivate *const d;
86 
87  Q_DISABLE_COPY(KGameSequence)
88 };
89 
90 #endif
91 
KGameSequence
This class takes care of round or move management as well of the gameover condition.
Definition: kgamesequence.h:44
QObject
KPlayer
Base class for a game player.
Definition: kplayer.h:69
KGame
The main KDE game object.
Definition: kgame.h:60
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:54 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkdegames/libkdegamesprivate/kgame

Skip menu "libkdegames/libkdegamesprivate/kgame"
  • Main Page
  • 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