ScummVM API documentation
Crab::pyrodactyl::item::ItemSlot Class Reference
Inheritance diagram for Crab::pyrodactyl::item::ItemSlot:
Crab::pyrodactyl::ui::StateButton Crab::pyrodactyl::ui::Button Crab::pyrodactyl::ui::Element Crab::Rect

Public Member Functions

void init (const ItemSlot &ref, const int &xOffset=0, const int &yOffset=0)
 
void load (rapidxml::xml_node< char > *node)
 
void draw ()
 
pyrodactyl::ui::ButtonAction handleEvents (const Common::Event &event, const int &xOffset=0, const int &yOffset=0)
 
bool canSwap (ItemSlot &target)
 
bool swap (ItemSlot &target)
 
bool equip (Item &i)
 
void statChange (pyrodactyl::people::Person &obj, bool increase)
 
void saveState (rapidxml::xml_document<> &doc, rapidxml::xml_node< char > *root)
 
void loadState (rapidxml::xml_node< char > *node)
 
- Public Member Functions inherited from Crab::pyrodactyl::ui::StateButton
void init (const StateButton &ref, const int &xOffset=0, const int &yOffset=0)
 
void load (rapidxml::xml_node< char > *node, const bool &echo=true)
 
void state (const bool val)
 
bool state ()
 
void img (const StateButtonImage &sbi)
 
- Public Member Functions inherited from Crab::pyrodactyl::ui::Button
void reset ()
 
void setUI (Rect *parent=nullptr)
 
void load (rapidxml::xml_node< char > *node, const bool &echo=true)
 
void init (const Button &ref, const int &xOffset=0, const int &yOffset=0)
 
void img (Button &b)
 
void img (ButtonImage &image)
 
ButtonImage img ()
 
void draw (const int &xOffset=0, const int &yOffset=0, Rect *clip=nullptr)
 
ButtonAction handleEvents (const Common::Event &event, const int &xOffset=0, const int &yOffset=0)
 
void imageCaptionOnlyDraw (const int &xOffset=0, const int &yOffset=0, Rect *clip=nullptr)
 
void hoverInfoOnlyDraw (const int &xOffset=0, const int &yOffset=0, Rect *clip=nullptr)
 
- Public Member Functions inherited from Crab::pyrodactyl::ui::Element
void init (const int &x, const int &y, const Align &alignX, const Align &alignY, const ImageKey image=0, const int &w=0, const int &h=0)
 
void init (const Element &e, ImageKey img=0, const int &xOffset=0, const int &yOffset=0)
 
void load (rapidxml::xml_node< char > *node, ImageKey img, const bool &echo=true)
 
void load (rapidxml::xml_node< char > *node, Rect *parent=nullptr, const bool &echo=true)
 
void setUI (Rect *parent=nullptr)
 
- Public Member Functions inherited from Crab::Rect
 Rect (int X=0, int Y=0, int W=0, int H=0)
 
bool load (rapidxml::xml_node< char > *node, const bool &echo=true, const Common::String &x_name="x", const Common::String &y_name="y", const Common::String &w_name="w", const Common::String &h_name="h")
 
bool collide (Rect box) const
 
void extend (Rect box)
 
Direction resolveX (Rect collider)
 
Direction resolveY (Rect collider)
 
bool contains (int x1, int y1)
 
bool contains (Vector2i v)
 
bool contains (Rect box)
 
void flip (const TextureFlipType &flip, const Vector2i &axis)
 
void draw (const int &xOffset=0, const int &yOffset=0, const uint8 &r=0, const uint8 &g=0, const uint8 &b=0, const uint8 &a=255)
 
bool operator== (const Rect &r)
 
void saveState (rapidxml::xml_document<> &doc, rapidxml::xml_node< char > *root, const char *name)
 

Public Attributes

Common::String _itemType
 
bool _empty
 
bool _enabled
 
bool _unread
 
SlotType _category
 
Item _item
 
- Public Attributes inherited from Crab::pyrodactyl::ui::Button
bool _visible
 
bool _mousePressed
 
bool _hoverMouse
 
bool _hoverKey
 
bool _hoverPrev
 
bool _canmove
 
ButtonImage _img
 
pyrodactyl::music::ChunkKey _seClick
 
pyrodactyl::music::ChunkKey _seHover
 
HoverInfo _tooltip
 
Caption _caption
 
pyrodactyl::input::HotKey _hotkey
 
- Public Attributes inherited from Crab::Rect
int x
 
int y
 
int w
 
int h
 

The documentation for this class was generated from the following file: