1 | /* |
2 | * Copyright 2006-2009 Parker Coates <coates@kde.org> |
3 | * |
4 | * This file is part of Killbots. |
5 | * |
6 | * Killbots is free software: you can redistribute it and/or modify |
7 | * it under the terms of the GNU General Public License as published by |
8 | * the Free Software Foundation, either version 2 of the License, or |
9 | * (at your option) any later version. |
10 | * |
11 | * Killbots is distributed in the hope that it will be useful, |
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 | * GNU General Public License for more details. |
15 | * |
16 | * You should have received a copy of the GNU General Public License |
17 | * along with Killbots. If not, see <http://www.gnu.org/licenses/>. |
18 | */ |
19 | |
20 | #include "mainwindow.h" |
21 | |
22 | #include <KDE/KAboutData> |
23 | #include <KDE/KApplication> |
24 | #include <KDE/KCmdLineArgs> |
25 | #include <KDE/KLocalizedString> |
26 | #include <KDE/KStandardDirs> |
27 | |
28 | |
29 | int main( int argc, char ** argv ) |
30 | { |
31 | KAboutData about( "killbots" , "" , ki18n("Killbots" ), "1.1.0" ); |
32 | about.setShortDescription( ki18n("A KDE game of killer robots and teleportation." ) ); |
33 | about.setLicense( KAboutData::License_GPL_V2 ); |
34 | about.setCopyrightStatement( ki18n("© 2006-2009, Parker Coates" ) ); |
35 | about.addAuthor( ki18n("Parker Coates" ), ki18n("Developer" ), "coates@kde.org" ); |
36 | about.addCredit( ki18n("Mark Rae" ), ki18n("Author of Gnome Robots. Invented safe teleports, pushing junkheaps and fast robots." ), "" , "http://live.gnome.org/Robots" ); |
37 | |
38 | KCmdLineArgs::init(argc, argv, &about); |
39 | |
40 | KApplication app; |
41 | |
42 | KGlobal::locale()->insertCatalog( QLatin1String( "libkdegames" )); |
43 | KGlobal::dirs()->addResourceType("ruleset" , "data" , about.appName() + "/rulesets/" ); |
44 | |
45 | Killbots::MainWindow * mainWindow = new Killbots::MainWindow; |
46 | mainWindow->show(); |
47 | |
48 | return app.exec(); |
49 | } |
50 | |