Otclient  14/8/2020
AnimatedText Class Reference

#include <animatedtext.h>

Inheritance diagram for AnimatedText:
Collaboration diagram for AnimatedText:

Public Member Functions

 AnimatedText ()
 
void drawText (const Point &dest, const Rect &visibleRect)
 
void setColor (int color)
 
void setText (const std::string &text)
 
void setOffset (const Point &offset)
 
Color getColor ()
 
const CachedTextgetCachedText () const
 
Point getOffset ()
 
Timer getTimer ()
 
bool merge (const AnimatedTextPtr &other)
 
AnimatedTextPtr asAnimatedText ()
 
bool isAnimatedText ()
 
- Public Member Functions inherited from Thing
 Thing ()
 
virtual ~Thing ()
 
virtual void draw (const Point &, float, bool, LightView *=nullptr)
 
virtual void setId (uint32)
 
void setPosition (const Position &position)
 
virtual uint32 getId ()
 
Position getPosition ()
 
int getStackPriority ()
 
const TilePtrgetTile ()
 
ContainerPtr getParentContainer ()
 
int getStackPos ()
 
virtual bool isItem ()
 
virtual bool isEffect ()
 
virtual bool isMissile ()
 
virtual bool isCreature ()
 
virtual bool isNpc ()
 
virtual bool isMonster ()
 
virtual bool isPlayer ()
 
virtual bool isLocalPlayer ()
 
virtual bool isStaticText ()
 
virtual const ThingTypePtrgetThingType ()
 
virtual ThingTyperawGetThingType ()
 
Size getSize ()
 
int getWidth ()
 
int getHeight ()
 
virtual Point getDisplacement ()
 
virtual int getDisplacementX ()
 
virtual int getDisplacementY ()
 
virtual int getExactSize (int layer, int xPattern, int yPattern, int zPattern, int animationPhase)
 
int getLayers ()
 
int getNumPatternX ()
 
int getNumPatternY ()
 
int getNumPatternZ ()
 
int getAnimationPhases ()
 
AnimatorPtr getAnimator ()
 
int getGroundSpeed ()
 
int getMaxTextLength ()
 
Light getLight ()
 
int getMinimapColor ()
 
int getLensHelp ()
 
int getClothSlot ()
 
int getElevation ()
 
bool isGround ()
 
bool isGroundBorder ()
 
bool isOnBottom ()
 
bool isOnTop ()
 
bool isContainer ()
 
bool isStackable ()
 
bool isForceUse ()
 
bool isMultiUse ()
 
bool isWritable ()
 
bool isChargeable ()
 
bool isWritableOnce ()
 
bool isFluidContainer ()
 
bool isSplash ()
 
bool isNotWalkable ()
 
bool isNotMoveable ()
 
bool blockProjectile ()
 
bool isNotPathable ()
 
bool isPickupable ()
 
bool isHangable ()
 
bool isHookSouth ()
 
bool isHookEast ()
 
bool isRotateable ()
 
bool hasLight ()
 
bool isDontHide ()
 
bool isTranslucent ()
 
bool hasDisplacement ()
 
bool hasElevation ()
 
bool isLyingCorpse ()
 
bool isAnimateAlways ()
 
bool hasMiniMapColor ()
 
bool hasLensHelp ()
 
bool isFullGround ()
 
bool isIgnoreLook ()
 
bool isCloth ()
 
bool isMarketable ()
 
bool isUsable ()
 
bool isWrapable ()
 
bool isUnwrapable ()
 
bool isTopEffect ()
 
MarketData getMarketData ()
 
virtual void onPositionChange (const Position &, const Position &)
 
virtual void onDisappear ()
 
- Public Member Functions inherited from LuaObject
 LuaObject ()
 
virtual ~LuaObject ()
 
template<typename T >
void connectLuaField (const std::string &field, const std::function< T > &f, bool pushFront=false)
 
template<typename... T>
int luaCallLuaField (const std::string &field, const T &... args)
 
template<typename R , typename... T>
callLuaField (const std::string &field, const T &... args)
 
template<typename... T>
void callLuaField (const std::string &field, const T &... args)
 
bool hasLuaField (const std::string &field)
 Returns true if the lua field exists. More...
 
template<typename T >
void setLuaField (const std::string &key, const T &value)
 Sets a field in this lua object. More...
 
template<typename T >
getLuaField (const std::string &key)
 Gets a field from this lua object. More...
 
void releaseLuaFieldsTable ()
 Release fields table reference. More...
 
void luaSetField (const std::string &key)
 Sets a field from this lua object, the value must be on the stack. More...
 
void luaGetField (const std::string &key)
 Gets a field from this lua object, the result is pushed onto the stack. More...
 
void luaGetMetatable ()
 Get object's metatable. More...
 
void luaGetFieldsTable ()
 Gets the table containing all stored fields of this lua object, the result is pushed onto the stack. More...
 
int getUseCount ()
 
std::string getClassName ()
 Returns the derived class name, its the same name used in Lua. More...
 
LuaObjectPtr asLuaObject ()
 
void operator= (const LuaObject &)
 
- Public Member Functions inherited from stdext::shared_object
 shared_object ()
 
virtual ~shared_object ()
 
void add_ref ()
 
void dec_ref ()
 
refcount_t ref_count ()
 
template<typename T >
stdext::shared_object_ptr< T > static_self_cast ()
 
template<typename T >
stdext::shared_object_ptr< T > dynamic_self_cast ()
 
template<typename T >
stdext::shared_object_ptr< T > const_self_cast ()
 

Protected Member Functions

virtual void onAppear ()
 

Additional Inherited Members

- Protected Attributes inherited from Thing
Position m_position
 
uint16 m_datId
 

Detailed Description

Definition at line 32 of file animatedtext.h.

Constructor & Destructor Documentation

◆ AnimatedText()

AnimatedText::AnimatedText ( )

Definition at line 30 of file animatedtext.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ asAnimatedText()

AnimatedTextPtr AnimatedText::asAnimatedText ( )
inline

Definition at line 50 of file animatedtext.h.

Here is the caller graph for this function:

◆ drawText()

void AnimatedText::drawText ( const Point dest,
const Rect visibleRect 
)

Definition at line 36 of file animatedtext.cpp.

Here is the call graph for this function:

◆ getCachedText()

const CachedText& AnimatedText::getCachedText ( ) const
inline

Definition at line 44 of file animatedtext.h.

◆ getColor()

Color AnimatedText::getColor ( )
inline

Definition at line 43 of file animatedtext.h.

◆ getOffset()

Point AnimatedText::getOffset ( )
inline

Definition at line 45 of file animatedtext.h.

◆ getTimer()

Timer AnimatedText::getTimer ( )
inline

Definition at line 46 of file animatedtext.h.

◆ isAnimatedText()

bool AnimatedText::isAnimatedText ( )
inlinevirtual

Reimplemented from Thing.

Definition at line 51 of file animatedtext.h.

◆ merge()

bool AnimatedText::merge ( const AnimatedTextPtr other)

Definition at line 87 of file animatedtext.cpp.

Here is the call graph for this function:

◆ onAppear()

void AnimatedText::onAppear ( )
protectedvirtual

Reimplemented from Thing.

Definition at line 68 of file animatedtext.cpp.

Here is the call graph for this function:

◆ setColor()

void AnimatedText::setColor ( int  color)

Definition at line 77 of file animatedtext.cpp.

Here is the call graph for this function:

◆ setOffset()

void AnimatedText::setOffset ( const Point offset)
inline

Definition at line 41 of file animatedtext.h.

◆ setText()

void AnimatedText::setText ( const std::string &  text)

Definition at line 82 of file animatedtext.cpp.

Here is the call graph for this function:

The documentation for this class was generated from the following files: