1/* ****************************************************************************
2 This file is part of the game 'KJumpingCube'
3
4 Copyright (C) 1998-2000 by Matthias Kiefer
5 <matthias.kiefer@gmx.de>
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
21**************************************************************************** */
22#include "version.h"
23#include "kjumpingcube.h"
24#include <kapplication.h>
25#include <kcmdlineargs.h>
26#include <kaboutdata.h>
27#include <klocale.h>
28#include <kglobal.h>
29
30
31static const char description[] =
32 I18N_NOOP("Tactical one or two player game");
33
34int main(int argc, char *argv[])
35{
36 KAboutData aboutData( "kjumpingcube", 0, ki18n("KJumpingCube"),
37 KJC_VERSION, ki18n(description), KAboutData::License_GPL,
38 ki18n("(c) 1998-2000, Matthias Kiefer"), KLocalizedString(),
39 "http://games.kde.org/kjumpingcube" );
40 aboutData.addAuthor(ki18n("Matthias Kiefer"),KLocalizedString(), "matthias.kiefer@gmx.de");
41 aboutData.addAuthor(ki18n("Benjamin Meyer"),ki18n("Various improvements"), "ben+kjumpingcube@meyerhome.net");
42 aboutData.addCredit(ki18n("Ian Wadham"),
43 ki18n("Upgrade to KDE4 and SVG artwork support."),
44 "iandw.au@gmail.com");
45 aboutData.addCredit(ki18n("Eugene Trounev"),
46 ki18n("Graphics for KDE 4.0 version."),
47 "irs_me@hotmail.com");
48 KCmdLineArgs::init( argc, argv, &aboutData );
49
50 KApplication application;
51 KGlobal::locale()->insertCatalog( QLatin1String( "libkdegames" ));
52
53 // All session management is handled in the RESTORE macro
54 if (application.isSessionRestored()) {
55 RESTORE(KJumpingCube)
56 }
57 else {
58 KJumpingCube *kjumpingcube = new KJumpingCube;
59 kjumpingcube->show();
60 }
61 return application.exec();
62}
63