kgamesequence.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef __KGAMESEQUENCE_H_
00024 #define __KGAMESEQUENCE_H_
00025
00026 #include <qobject.h>
00027
00028 class KPlayer;
00029 class KGame;
00030
00042 class KGameSequence : public QObject
00043 {
00044 Q_OBJECT
00045 public:
00046 KGameSequence();
00047 virtual ~KGameSequence();
00048
00054 virtual KPlayer* nextPlayer(KPlayer *last, bool exclusive = true);
00055
00056 virtual void setCurrentPlayer(KPlayer* p);
00057
00061 KGame* game() const { return mGame; }
00062
00063 KPlayer* currentPlayer() const { return mCurrentPlayer; }
00064
00070 void setGame(KGame* game);
00071
00079 virtual int checkGameOver(KPlayer *player);
00080
00081 private:
00082 KGame* mGame;
00083 KPlayer* mCurrentPlayer;
00084 };
00085
00086 #endif
00087
This file is part of the documentation for libkdegames Library Version 3.3.91.