52 if (info.display.sprites.empty())
bool draw(Graphics *graphics, int offsetX, int offsetY) const override
Draws the Actor to the given graphics context.
void setMap(Map *map) override
float getAlpha() const override
Returns the current alpha value used to draw the actor.
void setupSpriteDisplay(const SpriteDisplay &display, bool forceDisplay=true)
int getPixelX() const
Returns the pixels X coordinate of the actor.
int getPixelY() const
Returns the pixel Y coordinate of the actor.
Vector mPos
Position in pixels relative to map.
std::string getStringValue(const std::string &key) const
bool draw(Graphics *graphics, int offsetX, int offsetY) const override
Draws the Actor to the given graphics context.
const ItemInfo & getInfo() const
Returns the item info for this floor item.
FloorItem(int id, int itemId, const Vector &position, Map *map)
Constructor.
ResourceRef< Image > mImage
A central point of control for graphics.
bool drawImage(const Image *image, int x, int y)
Blits an image onto the screen.
int getHeight() const
Returns the height of the image.
int getWidth() const
Returns the width of the image.
void setAlpha(float alpha)
Sets the alpha value of this image.
const ItemInfo & get(int id) const
Defines a class for storing generic item infos.
int getTileHeight() const
Returns the tile height used by this map.
int getTileWidth() const
Returns the tile width of this map.
A class for loading and managing resources.
static ResourceManager * getInstance()
Returns an instance of the class, creating one if it does not already exist.
ResourceRef< Image > getImage(const std::string &idPath)
Loads the Image resource found at the given identifier path.
static ResourceRef< Image > getImageFromTheme(const std::string &path)
Configuration paths
XML default paths information reader.
ItemDB * itemDb
Items info database.