Go to the documentation of this file.
134 void draw(
const Point& dest,
float scaleFactor,
int layer,
int xPattern,
int yPattern,
int zPattern,
int animationPhase,
LightView *lightView =
nullptr);
144 int getExactSize(
int layer = 0,
int xPattern = 0,
int yPattern = 0,
int zPattern = 0,
int animationPhase = 0);
212 const TexturePtr& getTexture(
int animationPhase);
213 Size getBestTextureDimension(
int w,
int h,
int count);
214 uint getSpriteIndex(
int w,
int h,
int l,
int x,
int y,
int z,
int a);
215 uint getTextureIndex(
int l,
int x,
int y,
int z);
223 Point m_displacement;
225 int m_animationPhases;
228 int m_numPatternX, m_numPatternY, m_numPatternZ;
232 std::string m_customImage;
234 std::vector<int> m_spritesIndex;
235 std::vector<TexturePtr> m_textures;
236 std::vector<std::vector<Rect>> m_texturesFramesRects;
237 std::vector<std::vector<Rect>> m_texturesFramesOriginRects;
238 std::vector<std::vector<Point>> m_texturesFramesOffsets;
@ ThingAttrNoMoveAnimation
void unserializeOtml(const OTMLNodePtr &node)
MarketData getMarketData()
void serialize(const FileStreamPtr &fin)
bool hasAttr(ThingAttr attr)
void unserialize(uint16 clientId, ThingCategory category, const FileStreamPtr &fin)
bool has(const Key &k) const
std::vector< int > getSprites()
T get(const Key &k) const
AnimatorPtr getAnimator()
void draw(const Point &dest, float scaleFactor, int layer, int xPattern, int yPattern, int zPattern, int animationPhase, LightView *lightView=nullptr)
@ ThingAttrBlockProjectile
void setPathable(bool var)
ThingCategory getCategory()
LuaObject, all script-able classes have it as base.
void exportImage(std::string fileName)
@ ThingAttrFluidContainer
@ ThingAttrNotPreWalkable
int getExactSize(int layer=0, int xPattern=0, int yPattern=0, int zPattern=0, int animationPhase=0)