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)
 
virtual ~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 ()
 
virtual ~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
void setStatusEffectBlock (const int offset, const uint16_t newEffects)
 
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.

References maxCards, and setCards().

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 }
unsigned int mPickupCount
Definition: flooritem.h:144
ActorSprite(const BeingId id)
Definition: actorsprite.cpp:71
Configuration config
bool mHighlight
Definition: flooritem.h:150
bool mShowMsg
Definition: flooritem.h:149
ItemColor mColor
Definition: flooritem.h:146
Identified mIdentified
Definition: flooritem.h:147
int mRefine
Definition: flooritem.h:141
bool getBoolValue(const std::string &key) const
Damaged mDamaged
Definition: flooritem.h:148
int mItemId
Definition: flooritem.h:137
int mCards[4]
Definition: flooritem.h:136
time_t mDropTime
Definition: flooritem.h:139
volatile time_t cur_time
Definition: timer.cpp:57
CursorT mCursor
Definition: flooritem.h:145
int mAmount
Definition: flooritem.h:140
ItemTypeT mItemType
Definition: flooritem.h:143
void setCards(const int *const cards, int sz)
Definition: flooritem.cpp:129
int mHeightPosDiff
Definition: flooritem.h:142
#define maxCards
Definition: cards.h:24

Member Function Documentation

◆ disableHightlight()

void FloorItem::disableHightlight ( )
inline

Definition at line 113 of file flooritem.h.

References mHighlight.

Referenced by ActorManager::createItem().

114  { mHighlight = false; }
bool mHighlight
Definition: flooritem.h:150

◆ 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.

References BLOCK_END, BLOCK_START, CAST_S32, cur_time, CompoundSprite::drawSimple(), Font::drawString(), Graphics::fillRectangle(), UserColorId::FLOOR_ITEM_TEXT, ServerCommandType::font, 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.

Referenced by getType().

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  font->drawString(graphics,
212  color, color,
213  toString(mAmount),
214  x, y);
215  }
216  }
217  BLOCK_END("FloorItem::draw")
218 }
const Color & getColor(UserColorIdT type, const unsigned int alpha=255U)
Definition: userpalette.h:159
Gui * gui
Definition: gui.cpp:110
Definition: font.h:88
Definition: rect.h:72
#define BLOCK_START(name)
Definition: perfomance.h:78
void drawSimple(Graphics *const graphics, const int posX, const int posY) const
bool mHighlight
Definition: flooritem.h:150
if(!vert) return
#define BLOCK_END(name)
Definition: perfomance.h:79
Font * getFont() const
Definition: gui.h:159
UserPalette * userPalette
Definition: userpalette.cpp:33
int getActorY() const
Definition: actorsprite.h:162
virtual void setColor(const Color &color)
Definition: graphics.h:319
#define CAST_S32
Definition: cast.h:29
time_t mDropTime
Definition: flooritem.h:139
int getActorX() const
Definition: actorsprite.h:159
volatile time_t cur_time
Definition: timer.cpp:57
std::string toString(T const &value)
converts any type to a string
Definition: catch.hpp:1774
virtual void fillRectangle(const Rect &rectangle)=0
int mAmount
Definition: flooritem.h:140
static const int mapTileSize
Definition: map.h:26
Definition: color.h:74
int mHeightPosDiff
Definition: flooritem.h:142
Map * mMap
Definition: actor.h:138

◆ getCard()

int FloorItem::getCard ( const int  index) const

Definition at line 220 of file flooritem.cpp.

References maxCards, and mCards.

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

221 {
222  if (index < 0 || index >= maxCards)
223  return 0;
224  return mCards[index];
225 }
int mCards[4]
Definition: flooritem.h:136
#define maxCards
Definition: cards.h:24

◆ getColor()

ItemColor FloorItem::getColor ( ) const
inline

Definition at line 104 of file flooritem.h.

References mColor.

105  { return mColor; }
ItemColor mColor
Definition: flooritem.h:146

◆ getDamaged()

Damaged FloorItem::getDamaged ( ) const
inline

Definition at line 132 of file flooritem.h.

References mDamaged.

133  { return mDamaged; }
Damaged mDamaged
Definition: flooritem.h:148

◆ getHoverCursor()

CursorT FloorItem::getHoverCursor ( ) const
inline

Definition at line 116 of file flooritem.h.

References getCard(), mCursor, and setCards().

Referenced by Viewport::getMouseTile().

117  { return mCursor; }
CursorT mCursor
Definition: flooritem.h:145

◆ getIdentified()

Identified FloorItem::getIdentified ( ) const
inline

Definition at line 129 of file flooritem.h.

References mIdentified.

130  { return mIdentified; }
Identified mIdentified
Definition: flooritem.h:147

◆ 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.

References ItemDB::get(), and mItemId.

Referenced by getItemId().

141 {
142  return ItemDB::get(mItemId);
143 }
const ItemInfo & get(const int id)
Definition: itemdb.cpp:814
int mItemId
Definition: flooritem.h:137

◆ getItemId()

int FloorItem::getItemId ( ) const
inline

Returns the item ID.

Definition at line 81 of file flooritem.h.

References A_WARN_UNUSED, getInfo(), getName(), and mItemId.

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

82  { return mItemId; }
int mItemId
Definition: flooritem.h:137

◆ getItemType()

ItemTypeT FloorItem::getItemType ( ) const
inline

Definition at line 126 of file flooritem.h.

References mItemType.

127  { return mItemType; }
ItemTypeT mItemType
Definition: flooritem.h:143

◆ getName()

std::string FloorItem::getName ( ) const

Definition at line 145 of file flooritem.cpp.

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

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

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 }
const ItemInfo & get(const int id)
Definition: itemdb.cpp:814
ItemColor mColor
Definition: flooritem.h:146
const std::string & getName() const
Definition: iteminfo.h:73
bool info(InputEvent &event)
Definition: commands.cpp:56
int mItemId
Definition: flooritem.h:137
ServerTypeT getNetworkType()
Definition: net.cpp:178

◆ getPickupCount()

unsigned FloorItem::getPickupCount ( ) const
inline

Definition at line 101 of file flooritem.h.

References mPickupCount.

Referenced by ActorManager::pickUpAll().

102  { return mPickupCount; }
unsigned int mPickupCount
Definition: flooritem.h:144

◆ getRefine()

int FloorItem::getRefine ( ) const
inline

Definition at line 123 of file flooritem.h.

References mRefine.

124  { return mRefine; }
int mRefine
Definition: flooritem.h:141

◆ getShowMsg()

bool FloorItem::getShowMsg ( ) const
inline

Definition at line 107 of file flooritem.h.

References mShowMsg.

Referenced by LocalPlayer::pickedUp().

108  { return mShowMsg; }
bool mShowMsg
Definition: flooritem.h:149

◆ 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.

References mX.

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

93  { return mX; }

◆ 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.

References mY.

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

96  { return mY; }

◆ getType()

ActorTypeT FloorItem::getType ( ) const
inlinevirtual

Returns the type of the ActorSprite.

Reimplemented from ActorSprite.

Definition at line 71 of file flooritem.h.

References A_NONNULL, draw(), and ActorType::FloorItem.

◆ incrementPickup()

void FloorItem::incrementPickup ( )
inline

Definition at line 98 of file flooritem.h.

References mPickupCount.

Referenced by ActorManager::pickUpAll().

99  { mPickupCount ++; }
unsigned int mPickupCount
Definition: flooritem.h:144

◆ postInit()

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

Definition at line 80 of file flooritem.cpp.

References DisplayType::Floor, ForceDisplay_true, ItemDB::get(), ItemInfo::getDisplay(), ItemInfo::getDyeIconColorsString(), Map::getHeightOffset(), ItemInfo::getMaxFloorOffsetX(), ItemInfo::getMaxFloorOffsetY(), ItemInfo::getPickupCursor(), 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().

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();
127 }
const ItemInfo & get(const int id)
Definition: itemdb.cpp:814
void setupSpriteDisplay(const SpriteDisplay &display, const ForceDisplay forceDisplay, const DisplayTypeT displayType, const std::string &color)
int getTileHeight() const
Definition: map.h:180
CursorT getPickupCursor() const
Definition: iteminfo.h:294
Vector mPos
Definition: actor.h:139
ItemColor mColor
Definition: flooritem.h:146
int getMaxFloorOffsetX() const
Definition: iteminfo.h:240
const bool ForceDisplay_true
Definition: forcedisplay.h:29
Net::ServerFeatures * serverFeatures
Definition: net.cpp:94
int mPixelX
Definition: actor.h:132
bool info(InputEvent &event)
Definition: commands.cpp:56
int getMaxFloorOffsetY() const
Definition: iteminfo.h:243
const SpriteDisplay & getDisplay() const
Definition: iteminfo.h:93
int mItemId
Definition: flooritem.h:137
int mPixelY
Definition: actor.h:133
uint8_t getHeightOffset(const int x, const int y) const
Definition: map.cpp:1612
std::string getDyeIconColorsString(const ItemColor color) const
Definition: iteminfo.cpp:239
float x
Definition: vector.h:208
int mYDiff
Definition: actor.h:140
CursorT mCursor
Definition: flooritem.h:145
int getTileWidth() const
Definition: map.h:174
float y
Definition: vector.h:208
static const int mapTileSize
Definition: map.h:26
void setMap(Map *const map)
int mHeightPosDiff
Definition: flooritem.h:142
virtual bool haveExtendedDropsPosition() const =0

◆ setCards()

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

Definition at line 129 of file flooritem.cpp.

References maxCards, and mCards.

Referenced by FloorItem(), and getHoverCursor().

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 }
int mCards[4]
Definition: flooritem.h:136
#define maxCards
Definition: cards.h:24

◆ setShowMsg()

void FloorItem::setShowMsg ( const bool  n)
inline

Definition at line 110 of file flooritem.h.

References mShowMsg.

Referenced by LocalPlayer::pickedUp().

111  { mShowMsg = n; }
bool mShowMsg
Definition: flooritem.h:149

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: