Go to the documentation of this file.
75 #pragma pack(push,1) // disable memory alignment
85 void draw(
const Point& dest,
float scaleFactor,
bool animate,
LightView *lightView =
nullptr);
90 void setCount(
int count) { m_countOrSubType = count; }
91 void setSubType(
int subType) { m_countOrSubType = subType; }
148 int getExactSize(
int layer = 0,
int xPattern = 0,
int yPattern = 0,
int zPattern = 0,
int animationPhase = 0);
156 uint8 m_countOrSubType;
void setAsync(bool enable)
void serializeItem(const OutputBinaryTreePtr &out)
void setCountOrSubType(int value)
void setColor(const Color &c)
void setSubType(int subType)
ItemPtr getContainerItem(int slot)
void unserializeItem(const BinaryTreePtr &in)
void clearContainerItems()
const ThingTypePtr & getThingType()
void setDepotId(uint16 depotId)
void setText(std::string txt)
void addContainerItemIndexed(const ItemPtr &i, int slot)
void setUniqueId(uint16 uniqueId)
ItemVector getContainerItems()
void setDescription(std::string desc)
void calculatePatterns(int &xPattern, int &yPattern, int &zPattern)
std::string getDescription()
Position getTeleportDestination()
void setTeleportDestination(const Position &pos)
void removeContainerItem(int slot)
void draw(const Point &dest, float scaleFactor, bool animate, LightView *lightView=nullptr)
static ItemPtr createFromOtb(int id)
void setActionId(uint16 actionId)
int calculateAnimationPhase(bool animate)
void setDoorId(uint8 doorId)
static ItemPtr create(int id)
int getExactSize(int layer=0, int xPattern=0, int yPattern=0, int zPattern=0, int animationPhase=0)
std::vector< ItemPtr > ItemVector
void set(Key id, const T &value)
void addContainerItem(const ItemPtr &i)
ThingType * rawGetThingType()