28 #include "render/graphics.h"
39 #include "resources/map/map.h"
52 const int x,
const int y,
59 const int *
const cards) :
73 mIdentified(identified),
76 mHighlight(
config.getBoolValue(
"floorItemsHighlight"))
87 const int maxX =
info.getMaxFloorOffsetX();
88 const int maxY =
info.getMaxFloorOffsetY();
94 else if (subX < -maxX)
98 else if (subY < -maxY)
133 if (sz < 0 || cards ==
nullptr)
137 for (
int f = 0; f < sz; f ++)
152 return info.getName();
160 const int offsetX,
const int offsetY)
const
168 Font *font =
nullptr;
208 if (font !=
nullptr &&
mAmount > 1)
void setMap(Map *const map)
void setupSpriteDisplay(const SpriteDisplay &display, const ForceDisplay forceDisplay, const DisplayTypeT displayType, const std::string &color)
void drawSimple(Graphics *const graphics, const int posX, const int posY) const
void draw(Graphics *const graphics, const int offsetX, const int offsetY) const
std::string getName() const
FloorItem(const BeingId id, const int itemId, const int x, const int y, const ItemTypeT itemType, const int amount, const int refine, const ItemColor color, const Identified identified, const Damaged damaged, const int *const cards)
const ItemInfo & getInfo() const
int getCard(const int index) const
void setCards(const int *const cards, int sz)
void postInit(Map *const map, int subX, int subY)
void drawString(Graphics *const graphics, Color col, const Color &col2, const std::string &text, const int x, const int y)
virtual void fillRectangle(const Rect &rectangle)=0
virtual void setColor(const Color &color)
uint8_t getHeightOffset(const int x, const int y) const
int getTileHeight() const
virtual bool haveExtendedDropsPosition() const =0
const Color & getColor(UserColorIdT type, const unsigned int alpha)
static const int mapTileSize
const bool ForceDisplay_true
bool info(InputEvent &event)
std::string toString(T const &value)
converts any type to a string
const ItemInfo & get(const int id)
ServerTypeT getNetworkType()
Net::ServerFeatures * serverFeatures
#define BLOCK_START(name)
UserPalette * userPalette