00001 /* 00002 Copyright 2004 John Tsiombikas <nuclear@siggraph.org> 00003 00004 This file is part of the MUD project by The Lab Software. 00005 00006 MUD is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 2 of the License, or 00009 (at your option) any later version. 00010 00011 MUD is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with MUD; if not, write to the Free Software 00018 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 */ 00020 00023 #ifndef _ITEM_TYPES_H_ 00024 #define _ITEM_TYPES_H_ 00025 00027 enum item_type { 00028 ITEM_UNK, 00029 ITEM_FOOD, 00030 ITEM_DRINK, 00031 ITEM_GEAR, 00032 ITEM_WEAPON, 00033 ITEM_TEXT, 00034 ITEM_CONTAINER 00035 }; 00036 00037 /* take care to change this if the above list is modified */ 00038 #define ITEM_TYPE_COUNT 7 00039 00041 enum gear_type { 00042 GEAR_HEAD, 00043 GEAR_ARM, 00044 GEAR_HAND, 00045 GEAR_TORSO, 00046 GEAR_WAIST, 00047 GEAR_LEG, 00048 GEAR_FOOT, 00049 GEAR_BACK 00050 }; 00051 00052 /* take care to change this if the above list is modified */ 00053 #define GEAR_TYPE_COUNT 8 00054 00055 enum damage_type { 00056 DAMAGE_SLASH, 00057 DAMAGE_PIERCE, 00058 DAMAGE_BLUNT 00059 }; 00060 00061 /* definition in item.c */ 00062 extern unsigned int item_max_use_count[ITEM_TYPE_COUNT]; 00063 extern unsigned int gear_max_use_count[GEAR_TYPE_COUNT]; 00064 00065 #endif /* _ITEM_TYPES_H_ */