27 #ifndef DM_INVENTORY_H 28 #define DM_INVENTORY_H 32 #include "dm/champion.h" 33 #include "dm/dungeonman.h" 37 enum DescriptionMask {
38 kDMDescriptionMaskConsumable = 0x0001,
39 kDMDescriptionMaskPoisoned = 0x0002,
40 kDMDescriptionMaskBroken = 0x0004,
41 kDMDescriptionMaskCursed = 0x0008
45 kDMPanelContentFoodWaterPoisoned = 0,
46 kDMPanelContentScroll = 2,
47 kDMPanelContentChest = 4,
48 kDMPanelContentResurrectReincarnate = 5
51 #define kDMChampionStatusBoxSpacing 69 // @ C69_CHAMPION_STATUS_BOX_SPACING 61 int16 _inventoryChampionOrdinal;
62 PanelContent _panelContent;
65 int16 _objDescTextXpos;
66 int16 _objDescTextYpos;
68 const char *_skillLevelNames[15];
70 void toggleInventory(ChampionIndex championIndex);
71 void drawStatusBoxPortrait(ChampionIndex championIndex);
72 void drawPanelHorizontalBar(int16 x, int16 y, int16 pixelWidth, Color color);
73 void drawPanelFoodOrWaterBar(int16 amount, int16 y, Color color);
74 void drawPanelFoodWaterPoisoned();
75 void drawPanelResurrectReincarnate();
78 void drawPanelScrollTextLine(int16 yPos,
char *text);
79 void drawPanelScroll(
Scroll *scroll);
80 void openAndDrawChest(
Thing thingToOpen,
Container *chest,
bool isPressingEye);
81 void drawIconToViewport(IconIndice iconIndex, int16 xPos, int16 yPos);
82 void buildObjectAttributeString(int16 potentialAttribMask, int16 actualAttribMask,
const char ** attribStrings,
83 char *destString,
const char *prefixString,
const char *suffixString);
84 void drawPanelObjectDescriptionString(
const char *descString);
85 void drawPanelArrowOrEye(
bool pressingEye);
86 void drawPanelObject(
Thing thingToDraw,
bool pressingEye);
87 void setDungeonViewPalette();
88 void decreaseTorchesLightPower();
89 void drawChampionSkillsAndStatistics();
90 void drawStopPressingMouth();
91 void drawStopPressingEye();
93 void adjustStatisticCurrentValue(
Champion *champ, uint16 statIndex, int16 valueDelta);
Definition: dungeonman.h:491
Definition: champion.h:35
Definition: inventory.h:53
Definition: champion.h:398