Atrinik Client 2.5
include/server_settings.h
Go to the documentation of this file.
00001 /************************************************************************
00002 *            Atrinik, a Multiplayer Online Role Playing Game            *
00003 *                                                                       *
00004 *    Copyright (C) 2009-2011 Alex Tokar and Atrinik Development Team    *
00005 *                                                                       *
00006 * Fork from Daimonin (Massive Multiplayer Online Role Playing Game)     *
00007 * and Crossfire (Multiplayer game for X-windows).                       *
00008 *                                                                       *
00009 * This program is free software; you can redistribute it and/or modify  *
00010 * it under the terms of the GNU General Public License as published by  *
00011 * the Free Software Foundation; either version 2 of the License, or     *
00012 * (at your option) any later version.                                   *
00013 *                                                                       *
00014 * This program is distributed in the hope that it will be useful,       *
00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00017 * GNU General Public License for more details.                          *
00018 *                                                                       *
00019 * You should have received a copy of the GNU General Public License     *
00020 * along with this program; if not, write to the Free Software           *
00021 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.             *
00022 *                                                                       *
00023 * The author can be reached at admin@atrinik.org                        *
00024 ************************************************************************/
00025 
00030 #ifndef SERVER_SETTINGS_H
00031 #define SERVER_SETTINGS_H
00032 
00034 enum
00035 {
00036     SERVER_TEXT_STEP0,
00037     SERVER_TEXT_STEP1,
00038     SERVER_TEXT_STEP2,
00039 
00040     SERVER_TEXT_STATS,
00041     SERVER_TEXT_LOGIN,
00042 
00043     SERVER_TEXT_PROTECTION_GROUPS,
00044     SERVER_TEXT_PROTECTION_LETTERS,
00045     SERVER_TEXT_PROTECTION_FULL,
00046 
00047     SERVER_TEXT_SPELL_PATHS,
00048     SERVER_TEXT_SKILL_TYPES,
00049 
00050     SERVER_TEXT_MAX
00051 };
00052 
00054 typedef struct char_struct
00055 {
00057     char *name;
00058 
00060     uint32 base_hp;
00061 
00063     uint16 base_sp;
00064 
00066     uint16 base_grace;
00067 
00069     char *gender_archetypes[GENDER_MAX];
00070 
00072     char *gender_faces[GENDER_MAX];
00073 
00075     uint16 points_max;
00076 
00078     int stats_base[NUM_STATS];
00079 
00081     int stats_min[NUM_STATS];
00082 
00084     int stats_max[NUM_STATS];
00085 
00087     char *desc;
00088 } char_struct;
00089 
00093 typedef struct server_settings
00094 {
00096     uint32 max_level;
00097 
00099     sint64 *level_exp;
00100 
00102     char_struct *characters;
00103 
00105     size_t num_characters;
00106 
00108     char *text[SERVER_TEXT_MAX];
00109 
00111     char protection_letters[20][MAX_BUF];
00112 
00114     char protection_full[20][MAX_BUF];
00115 
00117     char spell_paths[SPELL_PATH_NUM][MAX_BUF];
00118 
00120     char skill_types[SKILL_LIST_TYPES][MAX_BUF];
00121 } server_settings;
00122 
00123 server_settings *s_settings;
00124 
00125 #endif