22 #ifndef XEEN_DIALOGS_ITEMS_H 23 #define XEEN_DIALOGS_ITEMS_H 25 #include "mm/xeen/dialogs/dialogs.h" 26 #include "mm/xeen/party.h" 27 #include "mm/xeen/window.h" 33 ITEMMODE_CHAR_INFO = 0, ITEMMODE_BUY = 1, ITEMMODE_SELL = 2, ITEMMODE_3 = 3,
34 ITEMMODE_RECHARGE = 4, ITEMMODE_5 = 5, ITEMMODE_ENCHANT = 6, ITEMMODE_COMBAT = 7, ITEMMODE_8 = 8,
35 ITEMMODE_REPAIR = 9, ITEMMODE_IDENTIFY = 10, ITEMMODE_TO_GOLD = 11,
54 void loadButtons(ItemsMode mode,
Character *&c, ItemCategory category);
59 void setEquipmentIcons();
64 int calcItemCost(
Character *c,
int itemIndex, ItemsMode mode,
int skillLevel,
65 ItemCategory category);
70 const char *getGoldPlurals(
int val);
72 int doItemOptions(
Character &c,
int actionIndex,
int itemIndex,
73 ItemCategory category, ItemsMode mode);
75 void itemToGold(
Character &c,
int itemIndex, ItemCategory category, ItemsMode mode);
87 _actionIndex(actionIndex), _items(items) {
Definition: dialogs_items.h:80
Definition: dialogs_items.h:39
Definition: character.h:106
Definition: detection.h:27