Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
libkdegames
libkdegames
libkdegames
kgame
kgamesequence.h
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 (martin@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
$Id$
22
*/
23
#ifndef __KGAMESEQUENCE_H_
24
#define __KGAMESEQUENCE_H_
25
26
#include <tqobject.h>
27
28
class
KPlayer
;
29
class
KGame
;
30
42
class
KGameSequence
:
public
TQObject
43
{
44
Q_OBJECT
45
TQ_OBJECT
46
public
:
47
KGameSequence
();
48
virtual
~
KGameSequence
();
49
55
virtual
KPlayer
*
nextPlayer
(
KPlayer
*last,
bool
exclusive =
true
);
56
57
virtual
void
setCurrentPlayer(
KPlayer
* p);
58
62
KGame
*
game
()
const
{
return
mGame; }
63
64
KPlayer
* currentPlayer()
const
{
return
mCurrentPlayer; }
65
71
void
setGame
(
KGame
*
game
);
72
80
virtual
int
checkGameOver
(
KPlayer
*player);
81
82
private
:
83
KGame
* mGame;
84
KPlayer
* mCurrentPlayer;
85
};
86
87
#endif
88
libkdegames
Skip menu "libkdegames"
Main Page
Class Hierarchy
Alphabetical List
Class List
File List
Class Members
Related Pages
libkdegames
Skip menu "libkdegames"
libkdegames