#include <floor_item.h>

Definition at line 39 of file floor_item.h.
Public Member Functions | |
| FloorItem (int id, int itemId, int x, int y, Map *map) | |
| Constructor. | |
| ~FloorItem () | |
| Destructor. | |
| int | getId () const |
| Returns instance id of this item. | |
| int | getItemId () const |
| Returns the item id. | |
| Item * | getItem () const |
| Returns the item object. | |
| int | getX () const |
| Returns the x coordinate. | |
| int | getY () const |
| Returns the y coordinate. | |
| int | getPixelY () const |
| Returns the pixel y coordinate. | |
| void | draw (Graphics *graphics, int offsetX, int offsetY) const |
| Draws this floor item to the given graphics context. | |
Private Attributes | |
| int | mId |
| int | mX |
| int | mY |
| Item * | mItem |
| Sprites::iterator | mSpriteIterator |
| Map * | mMap |
| FloorItem::FloorItem | ( | int | id, | |
| int | itemId, | |||
| int | x, | |||
| int | y, | |||
| Map * | map | |||
| ) |
| FloorItem::~FloorItem | ( | ) |
| int FloorItem::getId | ( | ) | const [inline] |
| int FloorItem::getItemId | ( | ) | const |
| Item * FloorItem::getItem | ( | ) | const |
Returns the item object.
Useful for adding an item link for the floor item to chat.
Definition at line 59 of file floor_item.cpp.
| int FloorItem::getX | ( | ) | const [inline] |
| int FloorItem::getY | ( | ) | const [inline] |
| int FloorItem::getPixelY | ( | ) | const [inline, virtual] |
Returns the pixel y coordinate.
Implements Sprite.
Definition at line 87 of file floor_item.h.
| void FloorItem::draw | ( | Graphics * | graphics, | |
| int | offsetX, | |||
| int | offsetY | |||
| ) | const [virtual] |
Draws this floor item to the given graphics context.
Implements Sprite.
Definition at line 64 of file floor_item.cpp.
int FloorItem::mId [private] |
Definition at line 97 of file floor_item.h.
int FloorItem::mX [private] |
Definition at line 98 of file floor_item.h.
int FloorItem::mY [private] |
Definition at line 98 of file floor_item.h.
Item* FloorItem::mItem [private] |
Definition at line 99 of file floor_item.h.
Sprites::iterator FloorItem::mSpriteIterator [private] |
Definition at line 100 of file floor_item.h.
Map* FloorItem::mMap [private] |
Definition at line 101 of file floor_item.h.
1.5.5