ManaPlus
Public Member Functions | Private Attributes
FloorItem Class Reference

#include <flooritem.h>

Inheritance diagram for FloorItem:
ActorSprite CompoundSprite Actor Sprite

Public Member Functions

 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)
 
void postInit (Map *const map, int subX, int subY)
 
ActorTypeT getType () const
 
void draw (Graphics *const graphics, const int offsetX, const int offsetY) const
 
int getItemId () const
 
const ItemInfogetInfo () const
 
std::string getName () const
 
int getTileX () const
 
int getTileY () const
 
void incrementPickup ()
 
unsigned getPickupCount () const
 
ItemColor getColor () const
 
bool getShowMsg () const
 
void setShowMsg (const bool n)
 
void disableHightlight ()
 
CursorT getHoverCursor () const
 
void setCards (const int *const cards, int sz)
 
int getCard (const int index) const
 
int getRefine () const
 
ItemTypeT getItemType () const
 
Identified getIdentified () const
 
Damaged getDamaged () const
 
- Public Member Functions inherited from ActorSprite
 ActorSprite (const BeingId id)
 
 ~ActorSprite ()
 
BeingId getId () const
 
void setId (const BeingId id)
 
virtual void logic ()
 
void setMap (Map *const map)
 
virtual BlockTypeT getBlockType () const
 
void controlAutoParticle (Particle *const particle)
 
void controlCustomParticle (Particle *const particle)
 
virtual TargetCursorSizeT getTargetCursorSize () const
 
virtual int getTargetOffsetX () const
 
virtual int getTargetOffsetY () const
 
void setTargetType (const TargetCursorTypeT type)
 
void untarget ()
 
void setStatusEffect (const int32_t index, const Enable active, const IsStart start)
 
void setStatusEffectOpitons (const uint32_t option, const uint32_t opt1, const uint32_t opt2, const uint32_t opt3)
 
void setStatusEffectOpitons (const uint32_t option, const uint32_t opt1, const uint32_t opt2)
 
void setStatusEffectOpiton0 (const uint32_t option)
 
void setAlpha (const float alpha)
 
float getAlpha () const
 
int getWidth () const
 
int getHeight () const
 
void addActorSpriteListener (ActorSpriteListener *const listener)
 
void removeActorSpriteListener (ActorSpriteListener *const listener)
 
int getActorX () const
 
int getActorY () const
 
void setPoison (const bool b)
 
bool getPoison () const
 
void setHaveCart (const bool b)
 
bool getHaveCart () const
 
virtual void setRiding (const bool b)
 
virtual void setTrickDead (const bool b)
 
bool isTrickDead () const
 
const std::set< int32_t > & getStatusEffects () const
 
std::string getStatusEffectsString () const
 
virtual void stopCast (const bool b)
 
size_t getParticlesCount () const
 
void controlParticleDeleted (const Particle *const particle)
 
- Public Member Functions inherited from CompoundSprite
 CompoundSprite ()
 
 ~CompoundSprite ()
 
bool reset ()
 
bool play (const std::string &action)
 
bool update (const int time)
 
void drawSimple (Graphics *const graphics, const int posX, const int posY) const
 
int getWidth () const
 
int getHeight () const
 
const ImagegetImage () const
 
bool setSpriteDirection (const SpriteDirection::Type direction)
 
int getNumberOfLayers () const
 
unsigned int getCurrentFrame () const
 
unsigned int getFrameCount () const
 
void addSprite (Sprite *const sprite)
 
void setSprite (const size_t layer, Sprite *const sprite)
 
void removeSprite (const int layer)
 
void clear ()
 
void ensureSize (const size_t layerCount)
 
void drawSprites (Graphics *const graphics, const int posX, const int posY) const
 
virtual void drawSpritesSDL (Graphics *const graphics, const int posX, const int posY) const
 
void setAlpha (float alpha)
 
bool updateNumber (const unsigned num)
 
int getLastTime () const
 
int getStartTime () const
 
- Public Member Functions inherited from Sprite
virtual ~Sprite ()
 
virtual const void * getHash () const
 
virtual const void * getHash2 () const
 
- Public Member Functions inherited from Actor
virtual ~Actor ()
 
const VectorgetPixelPositionF () const
 
virtual void setPixelPositionF (const Vector &pos)
 
int getPixelX () const
 
virtual int getPixelY () const
 
virtual int getSortPixelY () const
 
virtual int getNumberOfLayers () const
 
const MapgetMap () const
 

Private Attributes

int mCards [4]
 
int mItemId
 
int mX
 
int mY
 
time_t mDropTime
 
int mAmount
 
int mRefine
 
int mHeightPosDiff
 
ItemTypeT mItemType
 
unsigned int mPickupCount
 
CursorT mCursor
 
ItemColor mColor
 
Identified mIdentified
 
Damaged mDamaged
 
bool mShowMsg
 
bool mHighlight
 

Additional Inherited Members

- Public Types inherited from CompoundSprite
typedef std::vector< Sprite * >::iterator SpriteIterator
 
typedef std::vector< Sprite * >::const_iterator SpriteConstIterator
 
- Static Public Member Functions inherited from ActorSprite
static void load ()
 
static void unload ()
 
- Static Public Member Functions inherited from CompoundSprite
static void setEnableDelay (bool b)
 
- Data Fields inherited from CompoundSprite
std::vector< Sprite * > mSprites
 
- Data Fields inherited from Actor
int mPixelX
 
int mPixelY
 
- Protected Types inherited from ActorSprite
typedef std::list< ActorSpriteListener * > ActorSpriteListeners
 
typedef ActorSpriteListeners::iterator ActorSpriteListenerIterator
 
- Protected Types inherited from CompoundSprite
typedef std::list< CompoundItem * > ImagesCache
 
- Protected Member Functions inherited from ActorSprite
virtual void updateStatusEffect (const int32_t index, const Enable newStatus, const IsStart start)
 
virtual void handleStatusEffect (const StatusEffect *const effect, const int32_t effectId, const Enable newStatus, const IsStart start)
 
void setupSpriteDisplay (const SpriteDisplay &display, const ForceDisplay forceDisplay, const DisplayTypeT displayType, const std::string &color)
 
- Protected Member Functions inherited from CompoundSprite
void redraw () const
 
void updateImages () const
 
bool updateFromCache () const
 
void initCurrentCacheItem () const
 
- Protected Member Functions inherited from Sprite
 Sprite ()
 
- Protected Member Functions inherited from Actor
 Actor ()
 
- Static Protected Member Functions inherited from ActorSprite
static void initTargetCursor ()
 
static void cleanupTargetCursors ()
 
- Protected Attributes inherited from ActorSprite
std::set< int32_t > mStatusEffects
 
ParticleVector mStatusParticleEffects
 
ParticleList mChildParticleEffects
 
int mHorseId
 
BeingId mId
 
AnimatedSpritemUsedTargetCursor
 
ActorSpriteListeners mActorSpriteListeners
 
int mCursorPaddingX
 
int mCursorPaddingY
 
bool mMustResetParticles
 
bool mPoison
 
bool mHaveCart
 
bool mTrickDead
 
- Protected Attributes inherited from CompoundSprite
ImagesCache imagesCache
 
CompoundItemmCacheItem
 
ImagemImage
 
ImagemAlphaImage
 
int mOffsetX
 
int mOffsetY
 
int mStartTime
 
int mLastTime
 
int mNextRedrawTime
 
bool mNeedsRedraw
 
bool mEnableAlphaFix
 
bool mDisableAdvBeingCaching
 
bool mDisableBeingCaching
 
- Protected Attributes inherited from Sprite
float mAlpha
 
- Protected Attributes inherited from Actor
MapmMap
 
Vector mPos
 
int mYDiff
 
- Static Protected Attributes inherited from ActorSprite
static AnimatedSpritetargetCursor [static_cast< size_t >(TargetCursorType::NUM_TCT)][static_cast< size_t >(TargetCursorSize::NUM_TC)]
 
static bool loaded = false
 
- Static Protected Attributes inherited from CompoundSprite
static bool mEnableDelay = true
 

Detailed Description

An item lying on the floor.

Definition at line 43 of file flooritem.h.

Constructor & Destructor Documentation

◆ FloorItem()

FloorItem::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 
)

Constructor.

Parameters
idthe unique ID of this item instance
itemIdthe item ID
xthe x position in tiles
ythe y position in tiles
amountthe item amount
colorthe item color

Definition at line 49 of file flooritem.cpp.

58  :
59  ActorSprite(id),
60  mCards(),
61  mItemId(itemId),
62  mX(x),
63  mY(y),
65  mAmount(amount),
66  mRefine(refine),
67  mHeightPosDiff(0),
68  mItemType(itemType),
69  mPickupCount(0),
71  mColor(color),
72  mIdentified(identified),
73  mDamaged(damaged),
74  mShowMsg(true),
75  mHighlight(config.getBoolValue("floorItemsHighlight"))
76 {
77  setCards(cards, maxCards);
78 }

References maxCards, and setCards().

Member Function Documentation

◆ disableHightlight()

void FloorItem::disableHightlight ( )
inline

Definition at line 113 of file flooritem.h.

114  { mHighlight = false; }

References mHighlight.

Referenced by ActorManager::createItem().

◆ draw()

void FloorItem::draw ( Graphics *const  graphics,
const int  offsetX,
const int  offsetY 
) const
virtual

Draws the Actor to the given graphics context.

Note: this function could be simplified if the graphics context would support setting a translation offset. It already does this partly with the clipping rectangle support.

Implements Actor.

Definition at line 158 of file flooritem.cpp.

160 {
161  if (mMap == nullptr)
162  return;
163 
164  BLOCK_START("FloorItem::draw")
165  const int x = mX * mMap->getTileWidth() + offsetX;
166  const int y = mY * mMap->getTileHeight() + offsetY - mHeightPosDiff;
167  Font *font = nullptr;
168 
169  if (mHighlight)
170  {
171  const time_t curTime = cur_time;
172  font = gui->getFont();
173  if (mDropTime < curTime)
174  {
175  const int dx = mapTileSize;
176  const int dy = mapTileSize;
177 
178  if (curTime > mDropTime + 28 && curTime < mDropTime + 50)
179  {
180  graphics->setColor(Color(80, 200, 20, 200));
181  graphics->fillRectangle(Rect(
182  x, y, dx, dy));
183  }
184  else if (curTime > mDropTime + 19
185  && curTime < mDropTime + 28)
186  {
187  graphics->setColor(Color(200, 80, 20,
188  80 + 10 * CAST_S32(curTime - mDropTime - 18)));
189  graphics->fillRectangle(Rect(
190  x, y, dx, dy));
191  }
192  else if (curTime > mDropTime && curTime < mDropTime + 20)
193  {
194  graphics->setColor(Color(20, 20, 255,
195  7 * CAST_S32(curTime - mDropTime)));
196  graphics->fillRectangle(Rect(x, y, dx, dy));
197  }
198  }
199  }
200 
201  const int px = getActorX() + offsetX;
202  const int py = getActorY() + offsetY;
203  CompoundSprite::drawSimple(graphics, px, py);
204 
205  if (mHighlight)
206  {
207  if (font != nullptr && mAmount > 1)
208  {
209  const Color &color = userPalette->getColor(
211  255U);
212  font->drawString(graphics,
213  color, color,
214  toString(mAmount),
215  x, y);
216  }
217  }
218  BLOCK_END("FloorItem::draw")
219 }

References BLOCK_END, BLOCK_START, CAST_S32, cur_time, CompoundSprite::drawSimple(), Font::drawString(), Graphics::fillRectangle(), UserColorId::FLOOR_ITEM_TEXT, ActorSprite::getActorX(), ActorSprite::getActorY(), UserPalette::getColor(), Gui::getFont(), Map::getTileHeight(), Map::getTileWidth(), gui, mAmount, mapTileSize, mDropTime, mHeightPosDiff, mHighlight, Actor::mMap, mX, mY, Graphics::setColor(), Catch::toString(), userPalette, x, and y.

◆ getCard()

int FloorItem::getCard ( const int  index) const

Definition at line 221 of file flooritem.cpp.

222 {
223  if (index < 0 || index >= maxCards)
224  return 0;
225  return mCards[index];
226 }

References maxCards, and mCards.

Referenced by PopupMenu::handleLink(), and PopupMenu::showPopup().

◆ getColor()

ItemColor FloorItem::getColor ( ) const
inline

Definition at line 104 of file flooritem.h.

105  { return mColor; }

References mColor.

◆ getDamaged()

Damaged FloorItem::getDamaged ( ) const
inline

Definition at line 132 of file flooritem.h.

133  { return mDamaged; }

References mDamaged.

◆ getHoverCursor()

CursorT FloorItem::getHoverCursor ( ) const
inline

Definition at line 116 of file flooritem.h.

117  { return mCursor; }

References mCursor.

◆ getIdentified()

Identified FloorItem::getIdentified ( ) const
inline

Definition at line 129 of file flooritem.h.

130  { return mIdentified; }

References mIdentified.

◆ getInfo()

const ItemInfo & FloorItem::getInfo ( ) const

Returns the item info for this floor item. Useful for adding an item link for the floor item to chat.

Definition at line 140 of file flooritem.cpp.

141 {
142  return ItemDB::get(mItemId);
143 }

References ItemDB::get(), and mItemId.

◆ getItemId()

int FloorItem::getItemId ( ) const
inline

Returns the item ID.

Definition at line 81 of file flooritem.h.

82  { return mItemId; }

References mItemId.

Referenced by PopupMenu::handleLink(), ItemSoundManager::playSfx(), and PopupMenu::showPopup().

◆ getItemType()

ItemTypeT FloorItem::getItemType ( ) const
inline

Definition at line 126 of file flooritem.h.

127  { return mItemType; }

References mItemType.

◆ getName()

std::string FloorItem::getName ( ) const

Definition at line 145 of file flooritem.cpp.

146 {
147  const ItemInfo &info = ItemDB::get(mItemId);
148 #ifdef TMWA_SUPPORT
150  {
151  return info.getName();
152  }
153 #endif // TMWA_SUPPORT
154 
155  return info.getName(mColor);
156 }

References ItemDB::get(), Net::getNetworkType(), Actions::info(), mColor, mItemId, and ServerType::TMWATHENA.

Referenced by ActorManager::checkForPickup(), ActorManager::pickUpAll(), ActorManager::pickUpNearest(), and PopupMenu::showPopup().

◆ getPickupCount()

unsigned FloorItem::getPickupCount ( ) const
inline

Definition at line 101 of file flooritem.h.

102  { return mPickupCount; }

References mPickupCount.

Referenced by ActorManager::pickUpAll().

◆ getRefine()

int FloorItem::getRefine ( ) const
inline

Definition at line 123 of file flooritem.h.

124  { return mRefine; }

References mRefine.

◆ getShowMsg()

bool FloorItem::getShowMsg ( ) const
inline

Definition at line 107 of file flooritem.h.

108  { return mShowMsg; }

References mShowMsg.

Referenced by LocalPlayer::pickedUp().

◆ getTileX()

int FloorItem::getTileX ( ) const
inlinevirtual

Returns the x coordinate in tiles of the actor.

Reimplemented from Actor.

Definition at line 92 of file flooritem.h.

93  { return mX; }

References mX.

Referenced by LocalPlayer::pickUp(), and ActorManager::pickUpNearest().

◆ getTileY()

int FloorItem::getTileY ( ) const
inlinevirtual

Returns the y coordinate in tiles of the actor.

Reimplemented from Actor.

Definition at line 95 of file flooritem.h.

96  { return mY; }

References mY.

Referenced by LocalPlayer::pickUp(), and ActorManager::pickUpNearest().

◆ getType()

ActorTypeT FloorItem::getType ( ) const
inlinevirtual

Returns the type of the ActorSprite.

Reimplemented from ActorSprite.

Definition at line 71 of file flooritem.h.

72  { return ActorType::FloorItem; }

References ActorType::FloorItem.

◆ incrementPickup()

void FloorItem::incrementPickup ( )
inline

Definition at line 98 of file flooritem.h.

99  { mPickupCount ++; }

References mPickupCount.

Referenced by ActorManager::pickUpAll().

◆ postInit()

void FloorItem::postInit ( Map *const  map,
int  subX,
int  subY 
)

Definition at line 80 of file flooritem.cpp.

81 {
82  setMap(map);
83  const ItemInfo &info = ItemDB::get(mItemId);
84  if (map != nullptr)
85  {
86  const int maxX = info.getMaxFloorOffsetX();
87  const int maxY = info.getMaxFloorOffsetY();
88 
90  {
91  if (subX > maxX)
92  subX = maxX;
93  else if (subX < -maxX)
94  subX = -maxX;
95  if (subY > maxY)
96  subY = maxY;
97  else if (subY < -maxY)
98  subY = -maxY;
99 
100  subX -= 8;
101  subY -= 8;
102  }
103 
104  mHeightPosDiff = map->getHeightOffset(mX, mY) * 16;
105  mPixelX = mX * map->getTileWidth()
106  + subX + mapTileSize / 2;
107  mPixelY = mY * map->getTileHeight()
108  + subY + mapTileSize - mHeightPosDiff;
109  mPos.x = static_cast<float>(mPixelX);
110  mPos.y = static_cast<float>(mPixelY);
111  mYDiff = 31 - mHeightPosDiff;
112  }
113  else
114  {
115  mPixelX = 0;
116  mPixelY = 0;
117  mPos.x = 0;
118  mPos.y = 0;
119  mYDiff = 31;
120  }
121 
122  mCursor = info.getPickupCursor();
123  setupSpriteDisplay(info.getDisplay(),
126  info.getDyeIconColorsString(mColor));
127 }

References DisplayType::Floor, ForceDisplay_true, ItemDB::get(), Map::getHeightOffset(), Map::getTileHeight(), Map::getTileWidth(), Net::ServerFeatures::haveExtendedDropsPosition(), Actions::info(), mapTileSize, mColor, mCursor, mHeightPosDiff, mItemId, Actor::mPixelX, Actor::mPixelY, Actor::mPos, mX, mY, Actor::mYDiff, serverFeatures, ActorSprite::setMap(), ActorSprite::setupSpriteDisplay(), Vector::x, and Vector::y.

Referenced by ActorManager::createItem().

◆ setCards()

void FloorItem::setCards ( const int *const  cards,
int  sz 
)

Definition at line 129 of file flooritem.cpp.

131 {
132  if (sz < 0 || cards == nullptr)
133  return;
134  if (sz > maxCards)
135  sz = maxCards;
136  for (int f = 0; f < sz; f ++)
137  mCards[f] = cards[f];
138 }

References maxCards, and mCards.

Referenced by FloorItem().

◆ setShowMsg()

void FloorItem::setShowMsg ( const bool  n)
inline

Definition at line 110 of file flooritem.h.

111  { mShowMsg = n; }

References mShowMsg.

Referenced by LocalPlayer::pickedUp().

Field Documentation

◆ mAmount

int FloorItem::mAmount
private

Definition at line 140 of file flooritem.h.

Referenced by draw().

◆ mCards

int FloorItem::mCards[4]
private

Definition at line 136 of file flooritem.h.

Referenced by getCard(), and setCards().

◆ mColor

ItemColor FloorItem::mColor
private

Definition at line 146 of file flooritem.h.

Referenced by getColor(), getName(), and postInit().

◆ mCursor

CursorT FloorItem::mCursor
private

Definition at line 145 of file flooritem.h.

Referenced by getHoverCursor(), and postInit().

◆ mDamaged

Damaged FloorItem::mDamaged
private

Definition at line 148 of file flooritem.h.

Referenced by getDamaged().

◆ mDropTime

time_t FloorItem::mDropTime
private

Definition at line 139 of file flooritem.h.

Referenced by draw().

◆ mHeightPosDiff

int FloorItem::mHeightPosDiff
private

Definition at line 142 of file flooritem.h.

Referenced by draw(), and postInit().

◆ mHighlight

bool FloorItem::mHighlight
private

Definition at line 150 of file flooritem.h.

Referenced by disableHightlight(), and draw().

◆ mIdentified

Identified FloorItem::mIdentified
private

Definition at line 147 of file flooritem.h.

Referenced by getIdentified().

◆ mItemId

int FloorItem::mItemId
private

Definition at line 137 of file flooritem.h.

Referenced by getInfo(), getItemId(), getName(), and postInit().

◆ mItemType

ItemTypeT FloorItem::mItemType
private

Definition at line 143 of file flooritem.h.

Referenced by getItemType().

◆ mPickupCount

unsigned int FloorItem::mPickupCount
private

Definition at line 144 of file flooritem.h.

Referenced by getPickupCount(), and incrementPickup().

◆ mRefine

int FloorItem::mRefine
private

Definition at line 141 of file flooritem.h.

Referenced by getRefine().

◆ mShowMsg

bool FloorItem::mShowMsg
private

Definition at line 149 of file flooritem.h.

Referenced by getShowMsg(), and setShowMsg().

◆ mX

int FloorItem::mX
private

Definition at line 138 of file flooritem.h.

Referenced by draw(), getTileX(), and postInit().

◆ mY

int FloorItem::mY
private

Definition at line 138 of file flooritem.h.

Referenced by draw(), getTileY(), and postInit().


The documentation for this class was generated from the following files:
ForceDisplay_true
const bool ForceDisplay_true
Definition: forcedisplay.h:29
FloorItem::mItemType
ItemTypeT mItemType
Definition: flooritem.h:143
Vector::x
float x
Definition: vector.h:208
Actor::mMap
Map * mMap
Definition: actor.h:138
Actor::mPos
Vector mPos
Definition: actor.h:139
FloorItem::setCards
void setCards(const int *const cards, int sz)
Definition: flooritem.cpp:129
FloorItem::mCards
int mCards[4]
Definition: flooritem.h:136
FloorItem::mCursor
CursorT mCursor
Definition: flooritem.h:145
UserColorId::FLOOR_ITEM_TEXT
@ FLOOR_ITEM_TEXT
Definition: usercolorid.h:92
ActorSprite::setupSpriteDisplay
void setupSpriteDisplay(const SpriteDisplay &display, const ForceDisplay forceDisplay, const DisplayTypeT displayType, const std::string &color)
Definition: actorsprite.cpp:364
CompoundSprite::drawSimple
void drawSimple(Graphics *const graphics, const int posX, const int posY) const
Definition: compoundsprite.cpp:148
FloorItem::mColor
ItemColor mColor
Definition: flooritem.h:146
ActorSprite::ActorSprite
ActorSprite(const BeingId id)
Definition: actorsprite.cpp:68
userPalette
UserPalette * userPalette
Definition: userpalette.cpp:33
Catch::toString
std::string toString(T const &value)
converts any type to a string
Definition: catch.hpp:1774
Gui::getFont
Font * getFont() const
Definition: gui.h:159
serverFeatures
Net::ServerFeatures * serverFeatures
Definition: net.cpp:100
Actions::info
bool info(InputEvent &event)
Definition: commands.cpp:56
if
if(!vert) return
FloorItem::mDamaged
Damaged mDamaged
Definition: flooritem.h:148
ActorSprite::getActorY
int getActorY() const
Definition: actorsprite.h:162
Actor::mPixelY
int mPixelY
Definition: actor.h:133
Map::getHeightOffset
uint8_t getHeightOffset(const int x, const int y) const
Definition: map.cpp:1630
FloorItem::mDropTime
time_t mDropTime
Definition: flooritem.h:139
FloorItem::mHeightPosDiff
int mHeightPosDiff
Definition: flooritem.h:142
Map::getTileWidth
int getTileWidth() const
Definition: map.h:177
gui
Gui * gui
Definition: gui.cpp:110
ItemInfo
Definition: iteminfo.h:52
FloorItem::mIdentified
Identified mIdentified
Definition: flooritem.h:147
Actor::mPixelX
int mPixelX
Definition: actor.h:132
x
x
Definition: graphics_calcImageRect.hpp:72
Font
Definition: font.h:88
DisplayType::Floor
@ Floor
Definition: displaytype.h:29
FloorItem::mItemId
int mItemId
Definition: flooritem.h:137
Actor::mYDiff
int mYDiff
Definition: actor.h:140
FloorItem::mAmount
int mAmount
Definition: flooritem.h:140
Net::ServerFeatures::haveExtendedDropsPosition
virtual bool haveExtendedDropsPosition() const =0
FloorItem::mRefine
int mRefine
Definition: flooritem.h:141
config
Configuration config
Definition: configuration.cpp:51
maxCards
#define maxCards
Definition: cards.h:24
FloorItem::mHighlight
bool mHighlight
Definition: flooritem.h:150
FloorItem::mShowMsg
bool mShowMsg
Definition: flooritem.h:149
Graphics::setColor
virtual void setColor(const Color &color)
Definition: graphics.h:319
ActorType::FloorItem
@ FloorItem
Definition: actortype.h:33
FloorItem::mPickupCount
unsigned int mPickupCount
Definition: flooritem.h:144
Rect
Definition: rect.h:72
Net::getNetworkType
ServerTypeT getNetworkType()
Definition: net.cpp:188
FloorItem::mY
int mY
Definition: flooritem.h:138
UserPalette::getColor
const Color & getColor(UserColorIdT type, const unsigned int alpha)
Definition: userpalette.h:159
ServerType::TMWATHENA
@ TMWATHENA
Definition: servertype.h:31
Vector::y
float y
Definition: vector.h:208
Cursor::CURSOR_PICKUP
@ CURSOR_PICKUP
Definition: cursor.h:34
Map::getTileHeight
int getTileHeight() const
Definition: map.h:183
ActorSprite::getActorX
int getActorX() const
Definition: actorsprite.h:159
BLOCK_START
#define BLOCK_START(name)
Definition: perfomance.h:78
BLOCK_END
#define BLOCK_END(name)
Definition: perfomance.h:79
cur_time
volatile time_t cur_time
Definition: timer.cpp:57
CAST_S32
#define CAST_S32
Definition: cast.h:29
ItemDB::get
const ItemInfo & get(const int id)
Definition: itemdb.cpp:792
Graphics::fillRectangle
virtual void fillRectangle(const Rect &rectangle)=0
ActorSprite::setMap
void setMap(Map *const map)
Definition: actorsprite.cpp:138
Color
Definition: color.h:74
y
y
Definition: graphics_calcImageRect.hpp:72
FloorItem::mX
int mX
Definition: flooritem.h:138
mapTileSize
static const int mapTileSize
Definition: map.h:26
Configuration::getBoolValue
bool getBoolValue(const std::string &key) const
Definition: configuration.cpp:596