My Project
 
Loading...
Searching...
No Matches
ItemSlot Class Reference

#include <itemslot.h>

Inheritance diagram for ItemSlot:
Collaboration diagram for ItemSlot:

Public Member Functions

 ItemSlot ()
 
 ItemSlot (Item *item)
 
void item (Item *item)
 
void enable (boolean value)
 
void showParams (boolean value)
 

Static Public Attributes

static const int DEGRADED = 0xFF4444
 
static const int UPGRADED = 0x44FF44
 
static const int WARNING = 0xFF8800
 
static ItemCHEST = new ItemChest()
 
static ItemLOCKED_CHEST = new ItemLockedChest()
 
static ItemTOMB = new ItemTomb()
 
static ItemSKELETON = new ItemSkeleton()
 

Protected Member Functions

virtual void createChildren ()
 
virtual void layout ()
 

Protected Attributes

ItemSpriteicon
 
BitmapText * topLeft
 
BitmapText * topRight
 
BitmapText * bottomRight
 

Constructor & Destructor Documentation

◆ ItemSlot() [1/2]

ItemSlot::ItemSlot ( )
Here is the caller graph for this function:

◆ ItemSlot() [2/2]

ItemSlot::ItemSlot ( Item * item)
Here is the call graph for this function:

Member Function Documentation

◆ createChildren()

void ItemSlot::createChildren ( )
protectedvirtual
Here is the call graph for this function:

◆ enable()

void ItemSlot::enable ( boolean value)

◆ item()

void ItemSlot::item ( Item * item)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ layout()

void ItemSlot::layout ( )
protectedvirtual
Here is the caller graph for this function:

◆ showParams()

void ItemSlot::showParams ( boolean value)

Member Data Documentation

◆ bottomRight

BitmapText* ItemSlot::bottomRight
protected

◆ CHEST

Item * ItemSlot::CHEST = new ItemChest()
static

◆ DEGRADED

const int ItemSlot::DEGRADED = 0xFF4444
static

◆ icon

ItemSprite* ItemSlot::icon
protected

◆ LOCKED_CHEST

Item * ItemSlot::LOCKED_CHEST = new ItemLockedChest()
static

◆ SKELETON

Item * ItemSlot::SKELETON = new ItemSkeleton()
static

◆ TOMB

Item * ItemSlot::TOMB = new ItemTomb()
static

◆ topLeft

BitmapText* ItemSlot::topLeft
protected

◆ topRight

BitmapText* ItemSlot::topRight
protected

◆ UPGRADED

const int ItemSlot::UPGRADED = 0x44FF44
static

◆ WARNING

const int ItemSlot::WARNING = 0xFF8800
static

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