31#ifndef CRAB_ITEMMENU_H
32#define CRAB_ITEMMENU_H
34#include "crab/item/ItemSlot.h"
35#include "crab/people/person.h"
36#include "crab/ui/ItemDesc.h"
37#include "crab/ui/menu.h"
46 int _previewIndex, _selectIndex;
62 int hoverIndex() {
return _hoverIndex; }
68 const uint &cols,
const bool &keyboard);
70 void handleEvents(
const Common::Event &event,
const int &xOffset = 0,
const int &yOffset = 0);
72 void handleEvents(
const SDL_Event &Event,
const int &XOffset = 0,
const int &YOffset = 0);
76 bool swap(
ItemMenu &target,
int index);
77 bool equip(
Item &item);
84 void saveState(rapidxml::xml_document<> &doc, rapidxml::xml_node<char> *root);
85 void loadState(rapidxml::xml_node<char> *node);
Definition: ItemSlot.h:46
Definition: ItemDesc.h:40