2016-06-19 16:17:28 +02:00
|
|
|
#include "dm.h"
|
|
|
|
#include "gfx.h"
|
2016-06-19 18:05:19 +02:00
|
|
|
#include "champion.h"
|
2016-06-19 16:17:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace DM {
|
|
|
|
|
2016-06-20 19:39:36 +02:00
|
|
|
#define kChampionStatusBoxSpacing 69 // @ C69_CHAMPION_STATUS_BOX_SPACING
|
|
|
|
|
2016-06-21 14:55:57 +02:00
|
|
|
|
|
|
|
enum PanelContent {
|
|
|
|
kPanelContentFoodWaterPoisoned = 0, // @ C00_PANEL_FOOD_WATER_POISONED
|
|
|
|
kPanelContentScroll = 2, // @ C02_PANEL_SCROLL
|
|
|
|
kPanelContentChest = 4, // @ C04_PANEL_CHEST
|
|
|
|
kPanelContentResurrectReincarnate = 5 // @ C05_PANEL_RESURRECT_REINCARNATE
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-06-19 16:17:28 +02:00
|
|
|
class InventoryMan {
|
|
|
|
DMEngine *_vm;
|
|
|
|
public:
|
2016-06-19 18:05:19 +02:00
|
|
|
int16 _inventoryChampionOrdinal; // @ G0423_i_InventoryChampionOrdinal
|
2016-06-21 14:55:57 +02:00
|
|
|
PanelContent _panelContent; // @ G0424_i_PanelContent
|
2016-06-19 16:17:28 +02:00
|
|
|
InventoryMan(DMEngine *vm);
|
2016-06-19 18:05:19 +02:00
|
|
|
void toggleInventory(ChampionIndex championIndex); // @ F0355_INVENTORY_Toggle_CPSE
|
2016-06-20 18:12:22 +02:00
|
|
|
void drawStatusBoxPortrait(ChampionIndex championIndex); // @ F0354_INVENTORY_DrawStatusBoxPortrait
|
2016-06-20 22:10:55 +02:00
|
|
|
void drawPanelHorizontalBar(int16 x, int16 y, int16 pixelWidth, Color color); // @ F0343_INVENTORY_DrawPanel_HorizontalBar
|
2016-06-20 22:20:58 +02:00
|
|
|
void drawPanelFoodOrWaterBar(int16 amount, int16 y, Color color); // @ F0344_INVENTORY_DrawPanel_FoodOrWaterBar
|
2016-06-21 01:15:06 +02:00
|
|
|
void drawPanelFoodWaterPoisoned(); // @ F0345_INVENTORY_DrawPanel_FoodWaterPoisoned
|
2016-06-21 14:55:57 +02:00
|
|
|
void drawPanelResurrectReincarnate(); // @ F0346_INVENTORY_DrawPanel_ResurrectReincarnate
|
2016-06-21 15:09:24 +02:00
|
|
|
void drawPanel(); // @ F0347_INVENTORY_DrawPanel
|
2016-06-21 14:55:57 +02:00
|
|
|
|
2016-06-19 16:17:28 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|