Otclient  14/8/2020
StaticText Class Reference

#include <statictext.h>

Inheritance diagram for StaticText:
Collaboration diagram for StaticText:

Public Member Functions

 StaticText ()
 
void drawText (const Point &dest, const Rect &parentRect)
 
std::string getName ()
 
Otc::MessageMode getMessageMode ()
 
std::string getFirstMessage ()
 
bool isYell ()
 
void setText (const std::string &text)
 
void setFont (const std::string &fontName)
 
bool addMessage (const std::string &name, Otc::MessageMode mode, const std::string &text)
 
StaticTextPtr asStaticText ()
 
bool isStaticText ()
 
void setColor (const Color &color)
 
Color getColor ()
 
- 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 isAnimatedText ()
 
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 onAppear ()
 
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 ()
 

Additional Inherited Members

- Protected Attributes inherited from Thing
Position m_position
 
uint16 m_datId
 

Detailed Description

Definition at line 31 of file statictext.h.

Constructor & Destructor Documentation

◆ StaticText()

StaticText::StaticText ( )

Definition at line 30 of file statictext.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ addMessage()

bool StaticText::addMessage ( const std::string &  name,
Otc::MessageMode  mode,
const std::string &  text 
)

Definition at line 62 of file statictext.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ asStaticText()

StaticTextPtr StaticText::asStaticText ( )
inline

Definition at line 48 of file statictext.h.

◆ drawText()

void StaticText::drawText ( const Point dest,
const Rect parentRect 
)

Definition at line 38 of file statictext.cpp.

Here is the call graph for this function:

◆ getColor()

Color StaticText::getColor ( )
inline

Definition at line 52 of file statictext.h.

Here is the caller graph for this function:

◆ getFirstMessage()

std::string StaticText::getFirstMessage ( )
inline

Definition at line 40 of file statictext.h.

◆ getMessageMode()

Otc::MessageMode StaticText::getMessageMode ( )
inline

Definition at line 39 of file statictext.h.

◆ getName()

std::string StaticText::getName ( )
inline

Definition at line 38 of file statictext.h.

◆ isStaticText()

bool StaticText::isStaticText ( )
inlinevirtual

Reimplemented from Thing.

Definition at line 49 of file statictext.h.

◆ isYell()

bool StaticText::isYell ( )
inline

Definition at line 42 of file statictext.h.

Here is the caller graph for this function:

◆ setColor()

void StaticText::setColor ( const Color color)
inline

Definition at line 51 of file statictext.h.

Here is the caller graph for this function:

◆ setFont()

void StaticText::setFont ( const std::string &  fontName)

Definition at line 52 of file statictext.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setText()

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

Definition at line 57 of file statictext.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

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