ManaPlus
Public Member Functions | Static Public Member Functions | Data Fields | Protected Attributes
Item Class Reference

#include <item.h>

Inheritance diagram for Item:
ComplexItem ShopItem

Public Member Functions

 Item (const int id, const ItemTypeT type, const int quantity, const uint8_t refine, const ItemColor color, const Identified identified, const Damaged damaged, const Favorite favorite, const Equipm equipment, const Equipped equipped)
 
virtual ~Item ()
 
void setId (const int id, const ItemColor color)
 
int getId () const
 
ImagegetImage () const
 
void setQuantity (const int quantity)
 
void increaseQuantity (const int amount)
 
int getQuantity () const
 
void setEquipment (const Equipm equipment)
 
Equipm isEquipment () const
 
void setEquipped (const Equipped equipped)
 
Equipped isEquipped () const
 
void setRefine (const uint8_t refine)
 
uint8_t getRefine () const
 
void setInEquipment (const bool inEquipment)
 
bool isInEquipment () const
 
void setInvIndex (const int index)
 
int getInvIndex () const
 
const ItemInfogetInfo () const
 
std::string getName () const
 
bool isHaveTag (const int tagId) const
 
ItemColor getColor () const
 
void setColor (const ItemColor color)
 
const std::string & getDescription () const
 
void setIdentified (const Identified b)
 
Identified getIdentified () const
 
void setDamaged (const Damaged b)
 
Damaged getDamaged () const
 
void setFavorite (const Favorite b)
 
Favorite getFavorite () const
 
void setCard (const int index, const int id)
 
int getCard (const int index) const
 
void setCards (const int *const cards, const int size)
 
const int * getCards () const
 
void setOptions (const ItemOptionsList *const options)
 
const ItemOptionsListgetOptions () const
 
void setType (const ItemTypeT type)
 
ItemTypeT getType () const
 
void setTag (const int tag)
 
int getTag () const
 
void addCard (const int card)
 
void updateColor ()
 

Static Public Member Functions

static ImagegetImage (const int id, const ItemColor color)
 
static bool isItem (const int id)
 

Data Fields

int mId
 
ItemColor mColor
 
int mQuantity
 
int mTag
 

Protected Attributes

ImagemImage
 
std::string mDescription
 
std::map< int, int > mTags
 
int mCards [4]
 
const ItemOptionsListmOptions
 
uint8_t mRefine
 
int mInvIndex
 
ItemTypeT mType
 
Equipm mEquipment
 
Equipped mEquipped
 
bool mInEquipment
 
Identified mIdentified
 
Damaged mDamaged
 
Favorite mFavorite
 

Detailed Description

Represents one or more instances of a certain item type.

Definition at line 48 of file item.h.

Constructor & Destructor Documentation

◆ Item()

Item::Item ( const int  id,
const ItemTypeT  type,
const int  quantity,
const uint8_t  refine,
const ItemColor  color,
const Identified  identified,
const Damaged  damaged,
const Favorite  favorite,
const Equipm  equipment,
const Equipped  equipped 
)

Constructor.

Definition at line 45 of file item.cpp.

54  :
55  mId(0),
57  mQuantity(quantity),
58  mTag(0),
59  mImage(nullptr),
60  mDescription(),
61  mTags(),
62  mCards(),
63  mOptions(nullptr),
64  mRefine(refine),
65  mInvIndex(0),
66  mType(type),
67  mEquipment(equipment),
68  mEquipped(equipped),
69  mInEquipment(false),
70  mIdentified(identified),
71  mDamaged(damaged),
72  mFavorite(favorite)
73 {
74  setId(id, color);
75  for (int f = 0; f < maxCards; f ++)
76  mCards[f] = 0;
77 }

References maxCards, mCards, and setId().

◆ ~Item()

Item::~Item ( )
virtual

Destructor.

Definition at line 79 of file item.cpp.

80 {
81  if (mImage != nullptr)
82  {
83  mImage->decRef();
84  mImage = nullptr;
85  }
87  dragDrop.clearItem(this);
88 }

References DragDrop::clearItem(), Image::decRef(), delete2, dragDrop, mImage, and mOptions.

Member Function Documentation

◆ addCard()

void Item::addCard ( const int  card)

Definition at line 176 of file item.cpp.

177 {
178  for (int f = 0; f < maxCards; f ++)
179  {
180  if (mCards[f] == 0)
181  {
182  mCards[f] = card;
183  return;
184  }
185  }
186 }

References maxCards, and mCards.

Referenced by EAthena::InventoryRecv::processPlayerInsertCard().

◆ getCard()

int Item::getCard ( const int  index) const

Definition at line 158 of file item.cpp.

159 {
160  if (index < 0 || index >= maxCards)
161  return 0;
162  return mCards[index];
163 }

References maxCards, and mCards.

Referenced by PopupMenu::showDropPopup(), PopupMenu::showItemPopup(), PopupMenu::showPopup(), and PopupMenu::showUndressPopup().

◆ getCards()

const int* Item::getCards ( ) const
inline

◆ getColor()

ItemColor Item::getColor ( ) const
inline

◆ getDamaged()

Damaged Item::getDamaged ( ) const
inline

◆ getDescription()

const std::string& Item::getDescription ( ) const
inline

Definition at line 186 of file item.h.

187  { return mDescription; }

References mDescription.

◆ getFavorite()

Favorite Item::getFavorite ( ) const
inline

◆ getId()

int Item::getId ( ) const
inline

Returns the item id.

Definition at line 80 of file item.h.

81  { return mId; }

References mId.

Referenced by InventoryWindow::action(), ShopWindow::action(), NpcDialog::action(), BuyDialog::action(), TradeWindow::action(), ShopWindow::addBuyItem(), ComplexItem::addChild(), MailEditWindow::addItem(), SellDialog::addItem(), ShopWindow::addSellItem(), ComplexInventory::addVirtualItem(), Inventory::addVirtualItem(), ShopWindow::announce(), EAthena::BarterHandler::buyItems(), EAthena::CashShopHandler::buyItems(), EAthena::MarketHandler::buyItems(), EAthena::NpcHandler::buyItems(), TradeWindow::checkItem(), OutfitWindow::copyFromEquiped(), EAthena::BuyingStoreHandler::create(), DragDrop::dragItem(), ShopListBox::draw(), ItemContainer::draw(), PlayerInfo::dropItem(), EAthena::PetHandler::evolution(), ShopItems::findItem(), ShopWindow::findShopItem(), ShopWindow::giveList(), TradeWindow::initTrade(), InventoryWindow::mouseClicked(), ItemContainer::mousePressed(), ItemContainer::mouseReleased(), ItemSoundManager::playSfx(), EAthena::InventoryRecv::processPlayerCartAdd(), EAthena::InventoryRecv::processPlayerInsertCard(), TmwAthena::InventoryRecv::processPlayerInventoryAdd(), EAthena::InventoryRecv::processPlayerInventoryAdd(), ShopWindow::processRequest(), TmwAthena::TradeRecv::processTradeItemAddResponse(), EAthena::TradeRecv::processTradeItemAddResponse(), EAthena::RefineHandler::refineItem(), ItemContainer::safeDraw(), ShopWindow::saveList(), DragDrop::select(), EAthena::BuyingStoreHandler::sell(), ShopSellDialog::sellAction(), BuyingStoreSellDialog::sellAction(), NpcSellDialog::sellAction(), TmwAthena::BuySellHandler::sendBuyRequest(), MailEditWindow::sendMail(), TmwAthena::BuySellHandler::sendSellRequest(), ItemPopup::setItem(), ShortcutBase::setItemSelected(), ItemShortcut::setItemSelected(), PopupMenu::showDropPopup(), PopupMenu::showItemPopup(), PopupMenu::showPopup(), PopupMenu::showUndressPopup(), ShopWindow::sumAmount(), OutfitWindow::unequipNotInOutfit(), ItemContainer::updateMatrix(), PlayerInfo::useEquipItem(), PlayerInfo::useEquipItem2(), TmwAthena::InventoryHandler::useItem(), and EAthena::InventoryHandler::useItem().

◆ getIdentified()

Identified Item::getIdentified ( ) const
inline

◆ getImage() [1/2]

Image* Item::getImage ( ) const
inline

◆ getImage() [2/2]

Image * Item::getImage ( const int  id,
const ItemColor  color 
)
static

Definition at line 126 of file item.cpp.

128 {
129  const ItemInfo &info = ItemDB::get(id);
131  "itemIcons"), info.getDisplay().image),
132  info.getDyeIconColorsString(color)));
133 
134  if (image == nullptr)
135  image = Theme::getImageFromTheme("unknown-item.png");
136  return image;
137 }

References combineDye2(), ItemDB::get(), Loader::getImage(), Theme::getImageFromTheme(), Configuration::getStringValue(), Actions::info(), pathJoin(), and paths.

◆ getInfo()

const ItemInfo& Item::getInfo ( ) const
inline

◆ getInvIndex()

int Item::getInvIndex ( ) const
inline

Returns the inventory index of this item.

Definition at line 164 of file item.h.

165  { return mInvIndex; }

References mInvIndex.

Referenced by InventoryWindow::action(), ShopWindow::action(), ComplexItem::addChild(), EAthena::RefineHandler::addItem(), EAthena::Mail2Handler::addItem(), EAthena::TradeHandler::addItem(), TmwAthena::TradeHandler::addItem(), SellDialog::addItem(), ComplexInventory::addVirtualItem(), Inventory::addVirtualItem(), EAthena::VendingHandler::buyItems(), InventoryWindow::combineItems(), NpcDialog::complexItemToStr(), EAthena::VendingHandler::createShop(), TmwAthena::InventoryHandler::dropItem(), EAthena::InventoryHandler::dropItem(), TmwAthena::InventoryHandler::equipItem(), EAthena::InventoryHandler::equipItem(), EAthena::InventoryHandler::favoriteItem(), ItemAmountWindow::finish(), EAthena::InventoryHandler::identifyItem(), InventoryWindow::mouseClicked(), ItemContainer::mouseReleased(), anonymous_namespace{itemcontainer.cpp}::SortItemAlphaFunctor::operator()(), EAthena::RefineHandler::refineItem(), EAthena::InventoryHandler::selectEgg(), EAthena::BuyingStoreHandler::sell(), InsertCardDialog::sellAction(), MailEditWindow::sendMail(), EAthena::AuctionHandler::setItem(), PopupMenu::showDropPopup(), PopupMenu::showItemPopup(), PopupMenu::showPopup(), PopupMenu::showUndressPopup(), TmwAthena::InventoryHandler::unequipItem(), EAthena::InventoryHandler::unequipItem(), EAthena::InventoryHandler::useCard(), TmwAthena::InventoryHandler::useItem(), EAthena::InventoryHandler::useItem(), and Inventory::virtualRemove().

◆ getName()

std::string Item::getName ( ) const

◆ getOptions()

const ItemOptionsList* Item::getOptions ( ) const
inline

Definition at line 218 of file item.h.

219  { return mOptions; }

References mOptions.

Referenced by EAthena::TradeRecv::processTradeItemAddResponse(), and ItemPopup::setItem().

◆ getQuantity()

int Item::getQuantity ( ) const
inline

Returns the number of items.

Definition at line 104 of file item.h.

105  { return mQuantity; }

References mQuantity.

Referenced by ItemAmountWindow::action(), ShopWindow::action(), InventoryWindow::action(), PopupMenu::addDrop(), SellDialog::addItem(), PopupMenu::addItemMenu(), ComplexInventory::addVirtualItem(), ShopWindow::announce(), TradeWindow::checkItem(), NpcDialog::complexItemToStr(), EAthena::BuyingStoreHandler::create(), EAthena::VendingHandler::createShop(), ItemShortcutContainer::draw(), VirtShortcutContainer::draw(), EquipmentWindow::draw(), ItemContainer::draw(), DropShortcut::dropFirst(), DropShortcut::dropItem(), ItemShortcut::equipItem(), ShopWindow::findShopItem(), Actions::getAmountFromEvent(), ShopWindow::giveList(), TradeWindow::initTrade(), ItemAmountWindow::ItemAmountWindow(), InventoryWindow::mouseClicked(), ItemContainer::mouseReleased(), InventoryWindow::moveItemToCraft(), EAthena::InventoryRecv::processPlayerCartAdd(), EAthena::InventoryRecv::processPlayerInsertCard(), TmwAthena::InventoryRecv::processPlayerInventoryAdd(), EAthena::InventoryRecv::processPlayerInventoryAdd(), ShopWindow::processRequest(), ItemShortcutContainer::safeDraw(), VirtShortcutContainer::safeDraw(), EquipmentWindow::safeDraw(), ItemContainer::safeDraw(), ShopWindow::saveList(), TmwAthena::BuySellHandler::sendBuyRequest(), MailEditWindow::sendMail(), TmwAthena::BuySellHandler::sendSellRequest(), ShopWindow::showList(), PopupMenu::showPopup(), ItemAmountWindow::showWindow(), ShopWindow::startTrade(), ShopWindow::sumAmount(), ItemShortcut::unequipItem(), StatusWindow::updateArrowsBar(), InventoryWindow::updateButtons(), SellDialog::updateButtonsAndLabels(), BuyDialog::updateButtonsAndLabels(), InventoryWindow::updateDropButton(), ItemContainer::updateMatrix(), ItemShortcut::useItem(), InventoryWindow::valueChanged(), and OutfitWindow::wearOutfit().

◆ getRefine()

uint8_t Item::getRefine ( ) const
inline

◆ getTag()

int Item::getTag ( ) const
inline

◆ getType()

ItemTypeT Item::getType ( ) const
inline

◆ increaseQuantity()

void Item::increaseQuantity ( const int  amount)
inline

◆ isEquipment()

Equipm Item::isEquipment ( ) const
inline

◆ isEquipped()

Equipped Item::isEquipped ( ) const
inline

◆ isHaveTag()

bool Item::isHaveTag ( const int  tagId) const

Definition at line 118 of file item.cpp.

119 {
120  const std::map <int, int>::const_iterator it = mTags.find(tagId);
121  if (it == mTags.end())
122  return false;
123  return (*it).second > 0;
124 }

References mTags.

Referenced by ItemContainer::updateMatrix().

◆ isInEquipment()

bool Item::isInEquipment ( ) const
inline

Returns whether this item is in equipment.

Definition at line 152 of file item.h.

153  { return mInEquipment; }

References mInEquipment.

◆ isItem()

static bool Item::isItem ( const int  id)
inlinestatic

Definition at line 237 of file item.h.

238  {
239  return id != 0 &&
240  id != CARD0_FORGE &&
241  id != CARD0_CREATE &&
242  id != CARD0_PET;
243  }

References CARD0_CREATE, CARD0_FORGE, and CARD0_PET.

Referenced by Being::addItemParticlesCards().

◆ setCard()

void Item::setCard ( const int  index,
const int  id 
)

Definition at line 151 of file item.cpp.

152 {
153  if (index < 0 || index >= maxCards)
154  return;
155  mCards[index] = id;
156 }

References maxCards, and mCards.

◆ setCards()

void Item::setCards ( const int *const  cards,
const int  size 
)

Definition at line 165 of file item.cpp.

166 {
167  if (size < 0 || (cards == nullptr))
168  return;
169  int sz = size;
170  if (sz > maxCards)
171  sz = maxCards;
172  for (int f = 0; f < sz; f ++)
173  mCards[f] = cards[f];
174 }

References maxCards, mCards, and EmoteDB::size().

Referenced by BeingEquipBackend::BeingEquipBackend(), and Inventory::setCards().

◆ setColor()

void Item::setColor ( const ItemColor  color)
inline

Definition at line 183 of file item.h.

184  { mColor = color; }

References mColor.

◆ setDamaged()

void Item::setDamaged ( const Damaged  b)
inline

Definition at line 195 of file item.h.

196  { mDamaged = b; }

References mDamaged.

Referenced by Inventory::setItem().

◆ setEquipment()

void Item::setEquipment ( const Equipm  equipment)
inline

Sets whether this item is considered equipment.

Definition at line 110 of file item.h.

111  { mEquipment = equipment; }

References mEquipment.

Referenced by Inventory::setItem().

◆ setEquipped()

void Item::setEquipped ( const Equipped  equipped)
inline

Sets whether this item is equipped.

Definition at line 122 of file item.h.

123  { mEquipped = equipped; }

References mEquipped.

Referenced by Ea::EquipBackend::clear(), and Ea::EquipBackend::setEquipment().

◆ setFavorite()

void Item::setFavorite ( const Favorite  b)
inline

Definition at line 201 of file item.h.

202  { mFavorite = b; }

References mFavorite.

Referenced by Inventory::setItem().

◆ setId()

void Item::setId ( const int  id,
const ItemColor  color 
)

Sets the item id, color the item type.

Definition at line 90 of file item.cpp.

92 {
93  mId = id;
94  mColor = color;
95 
96  // Types 0 and 1 are not equippable items.
98  >= 2, Equipm);
99 
100  if (mImage != nullptr)
101  mImage->decRef();
102 
103  const ItemInfo &info = getInfo();
104  mTags = info.getTags();
105 
106  const std::string dye = combineDye2(pathJoin(
107  paths.getStringValue("itemIcons"), info.getDisplay().image),
108  info.getDyeIconColorsString(color));
109  mImage = Loader::getImage(dye);
110 
111  if (mImage == nullptr)
112  {
113  mImage = Theme::getImageFromTheme(paths.getValue("unknownItemFile",
114  "unknown-item.png"));
115  }
116 }

References CAST_S32, combineDye2(), Image::decRef(), fromBool, Loader::getImage(), Theme::getImageFromTheme(), getInfo(), Configuration::getStringValue(), getType(), ConfigurationObject::getValue(), Actions::info(), mColor, mEquipment, mId, mImage, mTags, pathJoin(), and paths.

Referenced by Item(), Inventory::setItem(), and updateColor().

◆ setIdentified()

void Item::setIdentified ( const Identified  b)
inline

Definition at line 189 of file item.h.

190  { mIdentified = b; }

References mIdentified.

Referenced by Inventory::setItem().

◆ setInEquipment()

void Item::setInEquipment ( const bool  inEquipment)
inline

Sets whether this item is in equipment.

Definition at line 146 of file item.h.

147  { mInEquipment = inEquipment; }

References mInEquipment.

◆ setInvIndex()

void Item::setInvIndex ( const int  index)
inline

Sets the inventory index of this item.

Definition at line 158 of file item.h.

159  { mInvIndex = index; }

References mInvIndex.

Referenced by ShopWindow::action(), ComplexItem::addChild(), Inventory::moveItem(), EAthena::VendingRecv::processItemsList(), ComplexInventory::setItem(), Inventory::setItem(), and ShopItem::ShopItem().

◆ setOptions()

void Item::setOptions ( const ItemOptionsList *const  options)

Definition at line 188 of file item.cpp.

189 {
191  mOptions = ItemOptionsList::copy(options);
192 }

References ItemOptionsList::copy(), delete2, and mOptions.

Referenced by EAthena::VendingRecv::processItemsList(), and Inventory::setOptions().

◆ setQuantity()

void Item::setQuantity ( const int  quantity)
inline

Sets the number of items.

Definition at line 92 of file item.h.

93  { mQuantity = quantity; }

References mQuantity.

Referenced by ShopWindow::action(), TradeWindow::changeQuantity(), and Inventory::setItem().

◆ setRefine()

void Item::setRefine ( const uint8_t  refine)
inline

Sets this item refine level.

Definition at line 134 of file item.h.

135  { mRefine = refine; }

References mRefine.

Referenced by Inventory::setItem().

◆ setTag()

void Item::setTag ( const int  tag)
inline

◆ setType()

void Item::setType ( const ItemTypeT  type)
inline

Definition at line 221 of file item.h.

222  { mType = type; }

References mType.

◆ updateColor()

void Item::updateColor ( )

Field Documentation

◆ mCards

int Item::mCards[4]
protected

Definition at line 254 of file item.h.

Referenced by addCard(), getCard(), getCards(), Item(), setCard(), setCards(), and updateColor().

◆ mColor

ItemColor Item::mColor

◆ mDamaged

Damaged Item::mDamaged
protected

Definition at line 263 of file item.h.

Referenced by getDamaged(), and setDamaged().

◆ mDescription

std::string Item::mDescription
protected

Definition at line 252 of file item.h.

Referenced by getDescription().

◆ mEquipment

Equipm Item::mEquipment
protected

Item is equipment.

Definition at line 259 of file item.h.

Referenced by isEquipment(), setEquipment(), and setId().

◆ mEquipped

Equipped Item::mEquipped
protected

Item is equipped.

Definition at line 260 of file item.h.

Referenced by isEquipped(), and setEquipped().

◆ mFavorite

Favorite Item::mFavorite
protected

Definition at line 264 of file item.h.

Referenced by getFavorite(), and setFavorite().

◆ mId

int Item::mId

◆ mIdentified

Identified Item::mIdentified
protected

Definition at line 262 of file item.h.

Referenced by getIdentified(), and setIdentified().

◆ mImage

Image* Item::mImage
protected

Item image.

Definition at line 251 of file item.h.

Referenced by getImage(), setId(), and ~Item().

◆ mInEquipment

bool Item::mInEquipment
protected

Item is in equipment

Definition at line 261 of file item.h.

Referenced by isInEquipment(), and setInEquipment().

◆ mInvIndex

int Item::mInvIndex
protected

Inventory index.

Definition at line 257 of file item.h.

Referenced by ShopItem::getCurrentInvIndex(), getInvIndex(), and setInvIndex().

◆ mOptions

const ItemOptionsList* Item::mOptions
protected

Definition at line 255 of file item.h.

Referenced by getOptions(), setOptions(), and ~Item().

◆ mQuantity

int Item::mQuantity

◆ mRefine

uint8_t Item::mRefine
protected

Item refine level.

Definition at line 256 of file item.h.

Referenced by getRefine(), and setRefine().

◆ mTag

int Item::mTag

Definition at line 248 of file item.h.

Referenced by Inventory::findIndexByTag(), Inventory::findItemByTag(), getTag(), and setTag().

◆ mTags

std::map<int, int> Item::mTags
protected

Definition at line 253 of file item.h.

Referenced by isHaveTag(), and setId().

◆ mType

ItemTypeT Item::mType
protected

Item type.

Definition at line 258 of file item.h.

Referenced by getType(), and setType().


The documentation for this class was generated from the following files:
CARD0_FORGE
#define CARD0_FORGE
Definition: cards.h:27
Item::mEquipment
Equipm mEquipment
Definition: item.h:259
ConfigurationObject::getValue
std::string getValue(const std::string &key, const std::string &deflt) const
Definition: configuration.cpp:268
Item::mFavorite
Favorite mFavorite
Definition: item.h:264
Item::mTag
int mTag
Definition: item.h:248
paths
Configuration paths
Definition: configuration.cpp:55
Item::mColor
ItemColor mColor
Definition: item.h:246
ItemOptionsList::copy
static ItemOptionsList * copy(const ItemOptionsList *const options0)
Definition: itemoptionslist.h:68
Image
Definition: image.h:67
fromBool
#define fromBool(val, name)
Definition: booldefines.h:48
pathJoin
std::string pathJoin(std::string str1, const std::string &str2)
Definition: stringutils.cpp:1036
Item::mCards
int mCards[4]
Definition: item.h:254
ItemColorManager::getColorFromCards
static ItemColor getColorFromCards(const int *const cards)
Definition: itemcolormanager.cpp:31
Item::mIdentified
Identified mIdentified
Definition: item.h:262
delete2
#define delete2(var)
Definition: delete2.h:24
bool
DragDrop::clearItem
void clearItem(const Item *const item)
Definition: dragdrop.h:227
Item::mTags
std::map< int, int > mTags
Definition: item.h:253
Item::getType
ItemTypeT getType() const
Definition: item.h:224
Actions::info
bool info(InputEvent &event)
Definition: commands.cpp:56
Theme::getImageFromTheme
static Image * getImageFromTheme(const std::string &path)
Definition: theme.cpp:654
Item::mDamaged
Damaged mDamaged
Definition: item.h:263
Loader::getImage
Image * getImage(const std::string &idPath)
Definition: imageloader.cpp:85
ItemInfo
Definition: iteminfo.h:52
Item::setId
void setId(const int id, const ItemColor color)
Definition: item.cpp:90
Configuration::getStringValue
std::string getStringValue(const std::string &key) const
Definition: configuration.cpp:487
maxCards
#define maxCards
Definition: cards.h:24
Item::mQuantity
int mQuantity
Definition: item.h:247
EmoteDB::size
int size()
Definition: emotedb.cpp:305
CARD0_CREATE
#define CARD0_CREATE
Definition: cards.h:28
Item::mType
ItemTypeT mType
Definition: item.h:258
Item::mInvIndex
int mInvIndex
Definition: item.h:257
Net::getNetworkType
ServerTypeT getNetworkType()
Definition: net.cpp:188
dragDrop
DragDrop dragDrop(0, DragDropSource::Empty)
ServerType::TMWATHENA
@ TMWATHENA
Definition: servertype.h:31
ItemColor_zero
const ItemColor ItemColor_zero
Definition: itemcolor.h:29
Item::mId
int mId
Definition: item.h:245
Item::mDescription
std::string mDescription
Definition: item.h:252
CAST_S32
#define CAST_S32
Definition: cast.h:29
Item::mEquipped
Equipped mEquipped
Definition: item.h:260
Item::mOptions
const ItemOptionsList * mOptions
Definition: item.h:255
Item::mImage
Image * mImage
Definition: item.h:251
ItemDB::get
const ItemInfo & get(const int id)
Definition: itemdb.cpp:792
CARD0_PET
#define CARD0_PET
Definition: cards.h:29
Item::getInfo
const ItemInfo & getInfo() const
Definition: item.h:170
Item::mInEquipment
bool mInEquipment
Definition: item.h:261
combineDye2
std::string combineDye2(std::string file, const std::string &dye)
Definition: stringutils.cpp:537
Image::decRef
void decRef()
Definition: image.cpp:522
Item::mRefine
uint8_t mRefine
Definition: item.h:256