You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdegames/atlantik/client/main.cpp

79 lines
2.7 KiB

// Copyright (c) 2002-2003 Rob Kaper <cap@capsi.com>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// version 2 as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; see the file COPYING. If not, write to
// the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
// Boston, MA 02110-1301, USA.
#include <kaboutdata.h>
#include <kcmdlineargs.h>
#include <klocale.h>
#include <kapplication.h>
#include <kglobal.h>
#include "main.h"
#include "atlantik.h"
static KCmdLineOptions options[] =
{
{ "h", 0, 0 },
{ "host <argument>", I18N_NOOP("Connect to this host"), 0 },
{ "p", 0, 0 },
{ "port <argument>", I18N_NOOP("Connect at this port"), "1234" },
{ "g", 0, 0 },
{ "game <argument>", I18N_NOOP("Join this game"), 0 },
KCmdLineLastOption
};
int main(int argc, char *argv[])
{
KAboutData aboutData(
"atlantik",
I18N_NOOP("Atlantik"), ATLANTIK_VERSION_STRING,
I18N_NOOP("The Atlantic board game"),
KAboutData::License_GPL,
I18N_NOOP("(c) 1998-2004 Rob Kaper"),
I18N_NOOP("KDE client for playing Monopoly-like games on the monopd network."),
"http://unixcode.org/atlantik/"
);
aboutData.addAuthor("Rob Kaper", I18N_NOOP("main author"), "cap@capsi.com", "http://capsi.com/");
// Patches and artists
aboutData.addCredit("Thiago Macieira", I18N_NOOP("KExtendedSocket support"), "thiagom@wanadoo.fr");
aboutData.addCredit("Albert Astals Cid", I18N_NOOP("various patches"), "tsdgeos@terra.es");
aboutData.addCredit("Bart Szyszka", I18N_NOOP("application icon"), "bart@gigabee.com", "http://www.gigabee.com/");
aboutData.addCredit("Rob Malda", I18N_NOOP("token icons"), "", "http://cmdrtaco.net/");
aboutData.addCredit("Elhay Achiam", I18N_NOOP("icons"), "elhay_a@bezeqint.net");
aboutData.addCredit("Carlo Caneva", I18N_NOOP("icons"), "webmaster@molecola.com", "http://www.molecola.com/");
KCmdLineArgs::init(argc, argv, &aboutData);
KCmdLineArgs::addCmdLineOptions (options);
KApplication::addCmdLineOptions();
KApplication kapplication;
KGlobal::locale()->insertCatalogue("libtdegames");
if (kapplication.isRestored())
RESTORE(Atlantik)
else
{
Atlantik *atlantik = new Atlantik;
atlantik->setMinimumSize(640, 480);
atlantik->setCaption(i18n("The Atlantic Board Game"));
atlantik->show();
}
return kapplication.exec();
}