diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-01-02 01:48:38 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-01-02 02:41:24 +0200 |
commit | 3eeae12c498d1a4dbe969462d2ba841f77ee3ccb (patch) | |
tree | ff8eab35e732bc0749fc11677c8873a7b3a58704 /src/main.h | |
download | plus-3eeae12c498d1a4dbe969462d2ba841f77ee3ccb.tar.gz plus-3eeae12c498d1a4dbe969462d2ba841f77ee3ccb.tar.bz2 plus-3eeae12c498d1a4dbe969462d2ba841f77ee3ccb.tar.xz plus-3eeae12c498d1a4dbe969462d2ba841f77ee3ccb.zip |
Initial commit.
This code based on mana client http://www.gitorious.org/mana/mana
and my private repository.
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 109 |
1 files changed, 109 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h new file mode 100644 index 000000000..480c9d374 --- /dev/null +++ b/src/main.h @@ -0,0 +1,109 @@ +/* + * The Mana Client + * Copyright (C) 2004-2009 The Mana World Development Team + * Copyright (C) 2009-2010 The Mana Developers + * + * This file is part of The Mana Client. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * any later version. + * + * 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. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef MAIN_H +#define MAIN_H + +/** + * \mainpage + * + * \section Introduction Introduction + * + * This is the documentation for the Mana client (http://manasource.org). It is + * always a work in progress, with the intent to make it easier for new + * developers to grow familiar with the source code. + * + * \section General General information + * + * During the game, the current Map is displayed by the main Viewport, which + * is the bottom-most widget in the WindowContainer. Aside the viewport, the + * window container keeps track of all the \link Window Windows\endlink + * displayed during the game. It is the <i>top</i> widget for Guichan. + * + * A Map is composed of several layers of \link Image Images\endlink (tiles), + * a layer with collision information and \link Sprite Sprites\endlink. The + * sprites define the visible part of \link Being Beings\endlink and + * \link FloorItem FloorItems\endlink, they are drawn from top to bottom + * by the map, interleaved with the tiles in the fringe layer. + * + * The client supports two servers, \link EAthena eAthena\endlink (the TMW + * version) and the \link ManaServ Mana server\endlink. To achieve this, the + * \link Net network communication layer\endlink is abstracted in many + * different interfaces, which have different implementations for each server. + */ + +#ifdef HAVE_CONFIG_H +#include "../config.h" +#elif defined WIN32 +#include "winver.h" +#elif defined __APPLE__ +#define PACKAGE_VERSION "1.0.0" +#endif + +#if defined __APPLE__ +#define PACKAGE_OS "Apple" +#elif defined __FreeBSD__ || defined __DragonFly__ +#define PACKAGE_OS "FreeBSD" +#elif defined __NetBSD__ +#define PACKAGE_OS "NetBSD" +#elif defined __OpenBSD__ +#define PACKAGE_OS "OpenBSD" +#elif defined __linux__ || defined __linux +#define PACKAGE_OS "Linux" +#elif defined __GNU__ +#define PACKAGE_OS "GNU Hurd" +#elif defined WIN32 || defined _WIN32 || defined __WIN32__ || defined __NT__ \ + || defined WIN64 || defined _WIN64 || defined __WIN64__ \ + || defined __MINGW32__ || defined _MSC_VER +#define PACKAGE_OS "Windows" +#else +#define PACKAGE_OS "Other" +#endif + + +#define ENABLEDEBUGLOG 1 +//define DEBUG_LEAKS +//define DEBUG_CONFIG 1 +//define DEBUG_FONT 1 +//define DEBUG_FONT_COUNTERS 1 +//define DEBUG_ALPHA_CACHE 1 + +#define SMALL_VERSION "1.0.12.26" +#define CHECK_VERSION "01.00.12.26" + + +#define PACKAGE_EXTENDED_VERSION "ManaPlus (" PACKAGE_OS \ +"; %s; 4144 v" SMALL_VERSION ")" +#define PACKAGE_VERSION_4144 "ManaPlus 4144-" SMALL_VERSION "" + +#define FULL_VERSION "ManaPlus 4144 " SMALL_VERSION " " PACKAGE_OS + +#ifndef PKG_DATADIR +#define PKG_DATADIR "" +#endif + +#ifdef __GNUC__ +#define _UNUSED_ __attribute__ ((unused)) +#else +#define _UNUSED_ +#endif + +#endif |