ManaPlus
|
#include <mapitem.h>
Public Member Functions | |
MapItem () | |
MapItem (const int type) | |
MapItem (const int type, const std::string &comment) | |
MapItem (const int type, const std::string &comment, const int x, const int y) | |
~MapItem () | |
int | getType () const |
void | setType (const int type) |
void | setPos (const int x, const int y) |
int | getX () const |
int | getY () const |
const std::string & | getComment () const |
void | setComment (const std::string &comment) |
const std::string & | getName () const |
void | setName (const std::string &name) |
void | draw (Graphics *const graphics, const int x, const int y, const int dx, const int dy) const |
Private Attributes | |
Image * | mImage |
std::string | mComment |
std::string | mName |
int | mType |
int | mX |
int | mY |
Friends | |
class | Map |
class | MapLayer |
class | SpecialLayer |
MapItem::MapItem | ( | ) |
|
explicit |
MapItem::MapItem | ( | const int | type, |
const std::string & | comment | ||
) |
MapItem::MapItem | ( | const int | type, |
const std::string & | comment, | ||
const int | x, | ||
const int | y | ||
) |
MapItem::~MapItem | ( | ) |
void MapItem::draw | ( | Graphics *const | graphics, |
const int | x, | ||
const int | y, | ||
const int | dx, | ||
const int | dy | ||
) | const |
Definition at line 133 of file mapitem.cpp.
References UserColorId::BEING, BLOCK_END, BLOCK_START, MapItemType::CROSS, Graphics::drawImage(), Graphics::drawRectangle(), Font::drawString(), MapItemType::EMPTY, Graphics::fillRectangle(), UserPalette::getColor(), UserPalette::getColorWithAlpha(), Gui::getFont(), gui, MapItemType::HOME, UserColorId::HOME_PLACE, UserColorId::HOME_PLACE_BORDER, mImage, mName, mType, MapItemType::PORTAL, MapItemType::ROAD, UserColorId::ROAD_POINT, Graphics::setColor(), userPalette, x, and y.
Referenced by SpecialLayer::draw(), and MapLayer::drawSpecialLayer().
|
inline |
Definition at line 68 of file mapitem.h.
References mComment.
Referenced by SocialNavigationTab::addPortal(), PopupMenu::handleLink(), SocialNavigationTab::updateList(), and SocialNavigationTab::updateNames().
|
inline |
|
inline |
Definition at line 55 of file mapitem.h.
References mType.
Referenced by SocialNavigationTab::addPortal(), PopupMenu::handleLink(), LocalPlayer::setHome(), LocalPlayer::setRealPos(), and SocialNavigationTab::updateList().
|
inline |
Definition at line 62 of file mapitem.h.
References mX.
Referenced by PopupMenu::handleLink(), RenameListener::setMapItem(), SocialNavigationTab::updateList(), and SocialNavigationTab::updateNames().
|
inline |
Definition at line 65 of file mapitem.h.
References mY.
Referenced by PopupMenu::handleLink(), RenameListener::setMapItem(), SocialNavigationTab::updateList(), and SocialNavigationTab::updateNames().
|
inline |
Definition at line 71 of file mapitem.h.
References mComment.
Referenced by RenameListener::action().
|
inline |
Definition at line 77 of file mapitem.h.
References mName.
Referenced by LocalPlayer::setHome(), and SocialNavigationTab::updateList().
void MapItem::setPos | ( | const int | x, |
const int | y | ||
) |
void MapItem::setType | ( | const int | type | ) |
Definition at line 96 of file mapitem.cpp.
References MapItemType::ARROW_DOWN, MapItemType::ARROW_LEFT, MapItemType::ARROW_RIGHT, MapItemType::ARROW_UP, Loader::getImage(), mImage, and mType.
Referenced by SpecialLayer::addRoad(), SpecialLayer::clean(), MapItem(), and SpecialLayer::setTile().
|
friend |
|
private |
Definition at line 86 of file mapitem.h.
Referenced by getComment(), and setComment().
|
private |
Definition at line 85 of file mapitem.h.
Referenced by draw(), setType(), and ~MapItem().
|
private |
|
private |
Definition at line 88 of file mapitem.h.
Referenced by draw(), MapLayer::drawSpecialLayer(), getType(), setType(), and SpecialLayer::updateCache().
|
private |
|
private |