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 <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