[Kde-games-devel] compiling kblocks
Ian Wadham
ianw2 at optusnet.com.au
Mon Dec 17 21:51:02 CET 2007
On Tue, 18 Dec 2007 01:14 am, Dapeng Zhang wrote:
> May I add a button or submenu "demo" in kblock.cpp&.h? Is there a
> "KStandardGameAction" or something I should use? How can I access the
> game status in the code?
>
Yes, there is a "KStandardGameAction" for "demo". kreversi has an example
and so does kpat. See KDE 4 Games trunk (development) code:
http://websvn.kde.org/trunk/KDE/kdegames/kreversi
http://websvn.kde.org/trunk/KDE/kdegames/kpat
I think kblocks will have to keep its own track of which mode it is in.
Cheers, Ian W.
More information about the kde-games-devel
mailing list