Atrinik Server 2.5
include/attack.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 ATTACK_H
00031 #define ATTACK_H
00032 
00035 typedef enum _attacks
00036 {
00038     ATNR_IMPACT,
00040     ATNR_SLASH,
00042     ATNR_CLEAVE,
00044     ATNR_PIERCE,
00046     ATNR_WEAPON_MAGIC,
00047 
00049     ATNR_FIRE,
00051     ATNR_COLD,
00053     ATNR_ELECTRICITY,
00055     ATNR_POISON,
00057     ATNR_ACID,
00058 
00060     ATNR_MAGIC,
00062     ATNR_MIND,
00064     ATNR_BLIND,
00066     ATNR_PARALYZE,
00068     ATNR_FORCE,
00069 
00071     ATNR_GODPOWER,
00073     ATNR_CHAOS,
00075     ATNR_DRAIN,
00077     ATNR_SLOW,
00081     ATNR_CONFUSION,
00082 
00084     ATNR_INTERNAL,
00085 
00087     NROFATTACKS
00088 } _attacks;
00089 
00092 #define LAST_PROTECTION (ATNR_CONFUSION + 1)
00093 
00100 #define AT_PHYSICAL         0x00000001
00101 
00102 #define AT_MAGIC            0x00000002
00103 
00104 #define AT_DRAIN            0x00000080
00105 
00106 #define AT_POISON           0x00000400
00107 
00108 #define AT_INTERNAL         0x00800000
00109 
00111 #ifndef INIT_C
00112 
00113 extern char *attack_name[NROFATTACKS];
00114 extern char *attack_save[NROFATTACKS];
00115 
00116 #else
00117 
00121 EXTERN char *attack_save[NROFATTACKS] =
00122 {
00123     "impact",   "slash", "cleave",      "pierce",    "weaponmagic",
00124     "fire",     "cold",  "electricity", "poison",    "acid",
00125     "magic",    "mind",  "blind",       "paralyze",  "force",
00126     "godpower", "chaos", "drain",       "slow",      "confusion",
00127     "internal"
00128 };
00129 
00131 EXTERN char *attack_name[NROFATTACKS] =
00132 {
00133     "impact",   "slash", "cleave",      "pierce",    "weapon magic",
00134     "fire",     "cold",  "electricity", "poison",    "acid",
00135     "magic",    "mind",  "blind",       "paralyze",  "force",
00136     "godpower", "chaos", "drain",       "slow",      "confusion",
00137     "internal"
00138 };
00139 
00140 #endif
00141 
00142 #endif