summaryrefslogtreecommitdiff
path: root/src/floor_item.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/floor_item.h')
-rw-r--r--src/floor_item.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/floor_item.h b/src/floor_item.h
index a7299bfb..444c756a 100644
--- a/src/floor_item.h
+++ b/src/floor_item.h
@@ -22,11 +22,16 @@
#ifndef FLOORITEM_H
#define FLOORITEM_H
-#include "graphics.h"
-#include "item.h"
-#include "map.h"
+#include <list>
+
#include "sprite.h"
-#include "resources/image.h"
+
+class Graphics;
+class Image;
+class Item;
+class Map;
+
+typedef std::list<Sprite*> Sprites;
/**
* An item lying on the floor.
@@ -56,7 +61,7 @@ class FloorItem : public Sprite
/**
* Returns the item id.
*/
- unsigned int getItemId() const { return mItem->getId(); }
+ unsigned int getItemId() const;
/**
* Returns the x coordinate.
@@ -80,12 +85,7 @@ class FloorItem : public Sprite
*
* @see Sprite::draw(Graphics, int, int)
*/
- void draw(Graphics *graphics, int offsetX, int offsetY) const
- {
- graphics->drawImage(mItem->getImage(),
- mX * 32 + offsetX,
- mY * 32 + offsetY);
- }
+ void draw(Graphics *graphics, int offsetX, int offsetY) const;
private:
unsigned int mId;