Otclient  14/8/2020
Effect Class Reference

#include <effect.h>

Inheritance diagram for Effect:
Collaboration diagram for Effect:

Public Member Functions

void drawEffect (const Point &dest, float scaleFactor, bool animate, int offsetX=0, int offsetY=0, LightView *lightView=nullptr)
 
void setId (uint32 id)
 
uint32 getId ()
 
EffectPtr asEffect ()
 
bool isEffect ()
 
const ThingTypePtrgetThingType ()
 
ThingTyperawGetThingType ()
 
- Public Member Functions inherited from Thing
 Thing ()
 
virtual ~Thing ()
 
virtual void draw (const Point &, float, bool, LightView *=nullptr)
 
void setPosition (const Position &position)
 
Position getPosition ()
 
int getStackPriority ()
 
const TilePtrgetTile ()
 
ContainerPtr getParentContainer ()
 
int getStackPos ()
 
virtual bool isItem ()
 
virtual bool isMissile ()
 
virtual bool isCreature ()
 
virtual bool isNpc ()
 
virtual bool isMonster ()
 
virtual bool isPlayer ()
 
virtual bool isLocalPlayer ()
 
virtual bool isAnimatedText ()
 
virtual bool isStaticText ()
 
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

void onAppear ()
 

Additional Inherited Members

- Protected Attributes inherited from Thing
Position m_position
 
uint16 m_datId
 

Detailed Description

Definition at line 31 of file effect.h.

Member Function Documentation

◆ asEffect()

EffectPtr Effect::asEffect ( )
inline

Definition at line 43 of file effect.h.

Here is the caller graph for this function:

◆ drawEffect()

void Effect::drawEffect ( const Point dest,
float  scaleFactor,
bool  animate,
int  offsetX = 0,
int  offsetY = 0,
LightView lightView = nullptr 
)

Definition at line 28 of file effect.cpp.

Here is the call graph for this function:

◆ getId()

uint32 Effect::getId ( )
inlinevirtual

Reimplemented from Thing.

Definition at line 41 of file effect.h.

◆ getThingType()

const ThingTypePtr & Effect::getThingType ( )
virtual

Reimplemented from Thing.

Definition at line 90 of file effect.cpp.

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

◆ isEffect()

bool Effect::isEffect ( )
inlinevirtual

Reimplemented from Thing.

Definition at line 44 of file effect.h.

◆ onAppear()

void Effect::onAppear ( )
protectedvirtual

Reimplemented from Thing.

Definition at line 60 of file effect.cpp.

Here is the call graph for this function:

◆ rawGetThingType()

ThingType * Effect::rawGetThingType ( )
virtual

Reimplemented from Thing.

Definition at line 95 of file effect.cpp.

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

◆ setId()

void Effect::setId ( uint32  id)
virtual

Reimplemented from Thing.

Definition at line 83 of file effect.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: