• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

libkdegames/kgame

kgamesequence.h

Go to the documentation of this file.
00001 /*
00002     This file is part of the KDE games library
00003     Copyright (C) 2003 Andreas Beckermann (b_mann@gmx.de)
00004     Copyright (C) 2003 Martin Heni (kde at heni-online.de)
00005 
00006     This library is free software; you can redistribute it and/or
00007     modify it under the terms of the GNU Library General Public
00008     License version 2 as published by the Free Software Foundation.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Library General Public License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public License
00016     along with this library; see the file COPYING.LIB.  If not, write to
00017     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018     Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef __KGAMESEQUENCE_H_
00022 #define __KGAMESEQUENCE_H_
00023 
00024 #include <QtCore/QObject>
00025 
00026 #include <libkdegames_export.h>
00027 
00028 class KPlayer;
00029 class KGame;
00030 
00044 class KDEGAMES_EXPORT KGameSequence : public QObject
00045 {
00046     Q_OBJECT
00047 public:
00048     KGameSequence();
00049     virtual ~KGameSequence();
00050 
00056     virtual KPlayer* nextPlayer(KPlayer *last, bool exclusive = true);
00057 
00058     virtual void setCurrentPlayer(KPlayer* p);
00059 
00063     KGame* game() const;
00064 
00065     KPlayer* currentPlayer() const;
00066 
00072     void setGame(KGame* game);
00073 
00081     virtual int checkGameOver(KPlayer *player);
00082 
00083 private:
00084     class KGameSequencePrivate;
00085     KGameSequencePrivate *const d;
00086 
00087     Q_DISABLE_COPY(KGameSequence)
00088 };
00089 
00090 #endif
00091 

libkdegames/kgame

Skip menu "libkdegames/kgame"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • kblackbox
  • kgoldrunner
  • kmahjongg
  • ksquares
  • libkdegames
  •   highscore
  •   kgame
  •   kggzgames
  •   kggzmod
  •   kggznet
  • libkmahjongg
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal