WeaponInfo.h

Go to the documentation of this file.
00001 /*
00002 Copyright (C) 2004-2005 The Pentagram team
00003 
00004 This program is free software; you can redistribute it and/or
00005 modify it under the terms of the GNU General Public License
00006 as published by the Free Software Foundation; either version 2
00007 of the License, or (at your option) any later version.
00008 
00009 This program is distributed in the hope that it will be useful,
00010 but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 GNU General Public License for more details.
00013 
00014 You should have received a copy of the GNU General Public License
00015 along with this program; if not, write to the Free Software
00016 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00017 */
00018 
00019 #ifndef WEAPONINFO_H
00020 #define WEAPONINFO_H
00021 
00022 
00023 struct WeaponInfo {
00024         uint32 shape;
00025         uint8 overlay_type;
00026         uint32 overlay_shape;
00027         uint8 damage_modifier;
00028         uint8 base_damage;
00029         uint8 dex_attack_bonus;
00030         uint8 dex_defend_bonus;
00031         uint8 armour_bonus;
00032         uint16 damage_type;
00033         int treasure_chance;
00034 
00035         enum DmgType {
00036                 DMG_NORMAL = 0x0001,
00037                 DMG_BLADE  = 0x0002,
00038                 DMG_BLUNT  = 0x0004,
00039                 DMG_FIRE   = 0x0008,
00040                 DMG_UNDEAD = 0x0010,
00041                 DMG_MAGIC  = 0x0020,
00042                 DMG_SLAYER = 0x0040,
00043                 DMG_PIERCE = 0x0080,
00044                 DMG_FALLING= 0x0100
00045         };
00046 };
00047 
00048 
00049 #endif

Generated on Fri Jul 27 22:27:53 2007 for pentagram by  doxygen 1.4.7