Otclient  14/8/2020
ThingType Class Reference

#include <thingtype.h>

Inheritance diagram for ThingType:
Collaboration diagram for ThingType:

Public Member Functions

 ThingType ()
 
void unserialize (uint16 clientId, ThingCategory category, const FileStreamPtr &fin)
 
void unserializeOtml (const OTMLNodePtr &node)
 
void serialize (const FileStreamPtr &fin)
 
void exportImage (std::string fileName)
 
void draw (const Point &dest, float scaleFactor, int layer, int xPattern, int yPattern, int zPattern, int animationPhase, LightView *lightView=nullptr)
 
uint16 getId ()
 
ThingCategory getCategory ()
 
bool isNull ()
 
bool hasAttr (ThingAttr attr)
 
Size getSize ()
 
int getWidth ()
 
int getHeight ()
 
int getExactSize (int layer=0, int xPattern=0, int yPattern=0, int zPattern=0, int animationPhase=0)
 
int getRealSize ()
 
int getLayers ()
 
int getNumPatternX ()
 
int getNumPatternY ()
 
int getNumPatternZ ()
 
int getAnimationPhases ()
 
AnimatorPtr getAnimator ()
 
Point getDisplacement ()
 
int getDisplacementX ()
 
int getDisplacementY ()
 
int getElevation ()
 
int getGroundSpeed ()
 
int getMaxTextLength ()
 
Light getLight ()
 
int getMinimapColor ()
 
int getLensHelp ()
 
int getClothSlot ()
 
MarketData getMarketData ()
 
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 ()
 
std::vector< int > getSprites ()
 
float getOpacity ()
 
bool isNotPreWalkable ()
 
void setPathable (bool var)
 
- 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 ()
 

Detailed Description

Definition at line 123 of file thingtype.h.

Constructor & Destructor Documentation

◆ ThingType()

ThingType::ThingType ( )

Definition at line 35 of file thingtype.cpp.

Member Function Documentation

◆ blockProjectile()

bool ThingType::blockProjectile ( )
inline

Definition at line 179 of file thingtype.h.

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

◆ draw()

void ThingType::draw ( const Point dest,
float  scaleFactor,
int  layer,
int  xPattern,
int  yPattern,
int  zPattern,
int  animationPhase,
LightView lightView = nullptr 
)

Definition at line 374 of file thingtype.cpp.

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

◆ exportImage()

void ThingType::exportImage ( std::string  fileName)

Definition at line 326 of file thingtype.cpp.

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

◆ getAnimationPhases()

int ThingType::getAnimationPhases ( )
inline

Definition at line 150 of file thingtype.h.

Here is the caller graph for this function:

◆ getAnimator()

AnimatorPtr ThingType::getAnimator ( )
inline

Definition at line 151 of file thingtype.h.

Here is the caller graph for this function:

◆ getCategory()

ThingCategory ThingType::getCategory ( )
inline

Definition at line 137 of file thingtype.h.

Here is the caller graph for this function:

◆ getClothSlot()

int ThingType::getClothSlot ( )
inline

Definition at line 162 of file thingtype.h.

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

◆ getDisplacement()

Point ThingType::getDisplacement ( )
inline

Definition at line 152 of file thingtype.h.

Here is the caller graph for this function:

◆ getDisplacementX()

int ThingType::getDisplacementX ( )
inline

Definition at line 153 of file thingtype.h.

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

◆ getDisplacementY()

int ThingType::getDisplacementY ( )
inline

Definition at line 154 of file thingtype.h.

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

◆ getElevation()

int ThingType::getElevation ( )
inline

Definition at line 155 of file thingtype.h.

Here is the caller graph for this function:

◆ getExactSize()

int ThingType::getExactSize ( int  layer = 0,
int  xPattern = 0,
int  yPattern = 0,
int  zPattern = 0,
int  animationPhase = 0 
)

Definition at line 557 of file thingtype.cpp.

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

◆ getGroundSpeed()

int ThingType::getGroundSpeed ( )
inline

Definition at line 157 of file thingtype.h.

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

◆ getHeight()

int ThingType::getHeight ( )
inline

Definition at line 143 of file thingtype.h.

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

◆ getId()

uint16 ThingType::getId ( )
inline

Definition at line 136 of file thingtype.h.

Here is the caller graph for this function:

◆ getLayers()

int ThingType::getLayers ( )
inline

Definition at line 146 of file thingtype.h.

Here is the caller graph for this function:

◆ getLensHelp()

int ThingType::getLensHelp ( )
inline

Definition at line 161 of file thingtype.h.

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

◆ getLight()

Light ThingType::getLight ( )
inline

Definition at line 159 of file thingtype.h.

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

◆ getMarketData()

MarketData ThingType::getMarketData ( )
inline

Definition at line 163 of file thingtype.h.

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

◆ getMaxTextLength()

int ThingType::getMaxTextLength ( )
inline

Definition at line 158 of file thingtype.h.

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

◆ getMinimapColor()

int ThingType::getMinimapColor ( )
inline

Definition at line 160 of file thingtype.h.

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

◆ getNumPatternX()

int ThingType::getNumPatternX ( )
inline

Definition at line 147 of file thingtype.h.

Here is the caller graph for this function:

◆ getNumPatternY()

int ThingType::getNumPatternY ( )
inline

Definition at line 148 of file thingtype.h.

Here is the caller graph for this function:

◆ getNumPatternZ()

int ThingType::getNumPatternZ ( )
inline

Definition at line 149 of file thingtype.h.

Here is the caller graph for this function:

◆ getOpacity()

float ThingType::getOpacity ( )
inline

Definition at line 207 of file thingtype.h.

◆ getRealSize()

int ThingType::getRealSize ( )
inline

Definition at line 145 of file thingtype.h.

Here is the caller graph for this function:

◆ getSize()

Size ThingType::getSize ( )
inline

Definition at line 141 of file thingtype.h.

Here is the caller graph for this function:

◆ getSprites()

std::vector<int> ThingType::getSprites ( )
inline

Definition at line 204 of file thingtype.h.

Here is the caller graph for this function:

◆ getWidth()

int ThingType::getWidth ( )
inline

Definition at line 142 of file thingtype.h.

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

◆ hasAttr()

bool ThingType::hasAttr ( ThingAttr  attr)
inline

Definition at line 139 of file thingtype.h.

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

◆ hasDisplacement()

bool ThingType::hasDisplacement ( )
inline

Definition at line 189 of file thingtype.h.

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

◆ hasElevation()

bool ThingType::hasElevation ( )
inline

Definition at line 190 of file thingtype.h.

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

◆ hasLensHelp()

bool ThingType::hasLensHelp ( )
inline

Definition at line 194 of file thingtype.h.

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

◆ hasLight()

bool ThingType::hasLight ( )
inline

Definition at line 186 of file thingtype.h.

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

◆ hasMiniMapColor()

bool ThingType::hasMiniMapColor ( )
inline

Definition at line 193 of file thingtype.h.

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

◆ isAnimateAlways()

bool ThingType::isAnimateAlways ( )
inline

Definition at line 192 of file thingtype.h.

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

◆ isChargeable()

bool ThingType::isChargeable ( )
inline

Definition at line 173 of file thingtype.h.

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

◆ isCloth()

bool ThingType::isCloth ( )
inline

Definition at line 197 of file thingtype.h.

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

◆ isContainer()

bool ThingType::isContainer ( )
inline

Definition at line 168 of file thingtype.h.

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

◆ isDontHide()

bool ThingType::isDontHide ( )
inline

Definition at line 187 of file thingtype.h.

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

◆ isFluidContainer()

bool ThingType::isFluidContainer ( )
inline

Definition at line 175 of file thingtype.h.

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

◆ isForceUse()

bool ThingType::isForceUse ( )
inline

Definition at line 170 of file thingtype.h.

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

◆ isFullGround()

bool ThingType::isFullGround ( )
inline

Definition at line 195 of file thingtype.h.

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

◆ isGround()

bool ThingType::isGround ( )
inline

Definition at line 164 of file thingtype.h.

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

◆ isGroundBorder()

bool ThingType::isGroundBorder ( )
inline

Definition at line 165 of file thingtype.h.

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

◆ isHangable()

bool ThingType::isHangable ( )
inline

Definition at line 182 of file thingtype.h.

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

◆ isHookEast()

bool ThingType::isHookEast ( )
inline

Definition at line 184 of file thingtype.h.

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

◆ isHookSouth()

bool ThingType::isHookSouth ( )
inline

Definition at line 183 of file thingtype.h.

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

◆ isIgnoreLook()

bool ThingType::isIgnoreLook ( )
inline

Definition at line 196 of file thingtype.h.

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

◆ isLyingCorpse()

bool ThingType::isLyingCorpse ( )
inline

Definition at line 191 of file thingtype.h.

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

◆ isMarketable()

bool ThingType::isMarketable ( )
inline

Definition at line 198 of file thingtype.h.

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

◆ isMultiUse()

bool ThingType::isMultiUse ( )
inline

Definition at line 171 of file thingtype.h.

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

◆ isNotMoveable()

bool ThingType::isNotMoveable ( )
inline

Definition at line 178 of file thingtype.h.

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

◆ isNotPathable()

bool ThingType::isNotPathable ( )
inline

Definition at line 180 of file thingtype.h.

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

◆ isNotPreWalkable()

bool ThingType::isNotPreWalkable ( )
inline

Definition at line 208 of file thingtype.h.

Here is the call graph for this function:

◆ isNotWalkable()

bool ThingType::isNotWalkable ( )
inline

Definition at line 177 of file thingtype.h.

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

◆ isNull()

bool ThingType::isNull ( )
inline

Definition at line 138 of file thingtype.h.

◆ isOnBottom()

bool ThingType::isOnBottom ( )
inline

Definition at line 166 of file thingtype.h.

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

◆ isOnTop()

bool ThingType::isOnTop ( )
inline

Definition at line 167 of file thingtype.h.

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

◆ isPickupable()

bool ThingType::isPickupable ( )
inline

Definition at line 181 of file thingtype.h.

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

◆ isRotateable()

bool ThingType::isRotateable ( )
inline

Definition at line 185 of file thingtype.h.

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

◆ isSplash()

bool ThingType::isSplash ( )
inline

Definition at line 176 of file thingtype.h.

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

◆ isStackable()

bool ThingType::isStackable ( )
inline

Definition at line 169 of file thingtype.h.

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

◆ isTopEffect()

bool ThingType::isTopEffect ( )
inline

Definition at line 202 of file thingtype.h.

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

◆ isTranslucent()

bool ThingType::isTranslucent ( )
inline

Definition at line 188 of file thingtype.h.

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

◆ isUnwrapable()

bool ThingType::isUnwrapable ( )
inline

Definition at line 201 of file thingtype.h.

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

◆ isUsable()

bool ThingType::isUsable ( )
inline

Definition at line 199 of file thingtype.h.

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

◆ isWrapable()

bool ThingType::isWrapable ( )
inline

Definition at line 200 of file thingtype.h.

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

◆ isWritable()

bool ThingType::isWritable ( )
inline

Definition at line 172 of file thingtype.h.

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

◆ isWritableOnce()

bool ThingType::isWritableOnce ( )
inline

Definition at line 174 of file thingtype.h.

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

◆ serialize()

void ThingType::serialize ( const FileStreamPtr fin)

Definition at line 50 of file thingtype.cpp.

Here is the call graph for this function:

◆ setPathable()

void ThingType::setPathable ( bool  var)

Definition at line 568 of file thingtype.cpp.

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

◆ unserialize()

void ThingType::unserialize ( uint16  clientId,
ThingCategory  category,
const FileStreamPtr fin 
)

Definition at line 134 of file thingtype.cpp.

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

◆ unserializeOtml()

void ThingType::unserializeOtml ( const OTMLNodePtr node)

Definition at line 356 of file thingtype.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: