• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • libkdegames
 

libkdegames

kgamesequence.h

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 (martin@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     $Id$
00022 */
00023 #ifndef __KGAMESEQUENCE_H_
00024 #define __KGAMESEQUENCE_H_
00025 
00026 #include <tqobject.h>
00027 
00028 class KPlayer;
00029 class KGame;
00030 
00042 class KGameSequence : public TQObject
00043 {
00044     Q_OBJECT
00045   TQ_OBJECT
00046 public:
00047     KGameSequence();
00048     virtual ~KGameSequence();
00049 
00055     virtual KPlayer* nextPlayer(KPlayer *last, bool exclusive = true);
00056 
00057     virtual void setCurrentPlayer(KPlayer* p);
00058 
00062     KGame* game() const { return mGame; }
00063 
00064     KPlayer* currentPlayer() const { return mCurrentPlayer; }
00065 
00071     void setGame(KGame* game);
00072 
00080     virtual int checkGameOver(KPlayer *player);
00081 
00082 private:
00083     KGame* mGame;
00084     KPlayer* mCurrentPlayer;
00085 };
00086 
00087 #endif
00088 

libkdegames

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

libkdegames

Skip menu "libkdegames"
  • libkdegames
Generated for libkdegames by doxygen 1.7.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |