|
Otclient 1.0
14/8/2020
|
#include <thingtype.h>


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 (const std::string &fileName) |
| void | draw (const Point &dest, float scaleFactor, int layer, int xPattern, int yPattern, int zPattern, int animationPhase, int reDrawFlags=Otc::ReDrawThing, 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 () |
| AnimatorPtr | getIdleAnimator () |
| 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 () |
| bool | isOpaque () |
| std::vector< int > | getSprites () |
| float | getOpacity () |
| bool | isNotPreWalkable () |
| void | setPathable (bool var) |
| int | getExactHeight () |
| const TexturePtr & | getTexture (int animationPhase) |
| void | startListenerPainter (float duration) |
| bool | cancelListenerPainter () |
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> | |
| R | 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 > | |
| 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 () |
Definition at line 126 of file thingtype.h.
| ThingType::ThingType | ( | ) |
Definition at line 37 of file thingtype.cpp.
|
inline |
Definition at line 184 of file thingtype.h.


| bool ThingType::cancelListenerPainter | ( | ) |
Definition at line 677 of file thingtype.cpp.


| void ThingType::draw | ( | const Point & | dest, |
| float | scaleFactor, | ||
| int | layer, | ||
| int | xPattern, | ||
| int | yPattern, | ||
| int | zPattern, | ||
| int | animationPhase, | ||
| int | reDrawFlags = Otc::ReDrawThing, |
||
| LightView * | lightView = nullptr |
||
| ) |
Definition at line 428 of file thingtype.cpp.


| void ThingType::exportImage | ( | const std::string & | fileName | ) |
Definition at line 380 of file thingtype.cpp.


| int ThingType::getAnimationPhases | ( | ) |
Definition at line 637 of file thingtype.cpp.


|
inline |
|
inline |
|
inline |
Definition at line 167 of file thingtype.h.


|
inline |
|
inline |
Definition at line 158 of file thingtype.h.


|
inline |
Definition at line 159 of file thingtype.h.


|
inline |
| int ThingType::getExactHeight | ( | ) |
| int ThingType::getExactSize | ( | int | layer = 0, |
| int | xPattern = 0, |
||
| int | yPattern = 0, |
||
| int | zPattern = 0, |
||
| int | animationPhase = 0 |
||
| ) |
Definition at line 618 of file thingtype.cpp.


|
inline |
Definition at line 162 of file thingtype.h.


|
inline |
Definition at line 146 of file thingtype.h.


|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 166 of file thingtype.h.


|
inline |
Definition at line 164 of file thingtype.h.


|
inline |
Definition at line 168 of file thingtype.h.


|
inline |
Definition at line 163 of file thingtype.h.


|
inline |
Definition at line 165 of file thingtype.h.


|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 213 of file thingtype.h.
|
inline |
|
inline |
|
inline |
| const TexturePtr & ThingType::getTexture | ( | int | animationPhase | ) |
Definition at line 476 of file thingtype.cpp.


|
inline |
Definition at line 145 of file thingtype.h.


|
inline |
Definition at line 142 of file thingtype.h.


|
inline |
Definition at line 194 of file thingtype.h.


|
inline |
Definition at line 195 of file thingtype.h.


|
inline |
Definition at line 199 of file thingtype.h.


|
inline |
Definition at line 191 of file thingtype.h.


|
inline |
Definition at line 198 of file thingtype.h.


|
inline |
Definition at line 197 of file thingtype.h.


|
inline |
Definition at line 178 of file thingtype.h.


|
inline |
Definition at line 202 of file thingtype.h.


|
inline |
Definition at line 173 of file thingtype.h.


|
inline |
Definition at line 192 of file thingtype.h.


|
inline |
Definition at line 180 of file thingtype.h.


|
inline |
Definition at line 175 of file thingtype.h.


|
inline |
Definition at line 200 of file thingtype.h.


|
inline |
Definition at line 169 of file thingtype.h.


|
inline |
Definition at line 170 of file thingtype.h.


|
inline |
Definition at line 187 of file thingtype.h.


|
inline |
Definition at line 189 of file thingtype.h.


|
inline |
Definition at line 188 of file thingtype.h.


|
inline |
Definition at line 201 of file thingtype.h.


|
inline |
Definition at line 196 of file thingtype.h.


|
inline |
Definition at line 203 of file thingtype.h.


|
inline |
Definition at line 176 of file thingtype.h.


|
inline |
Definition at line 183 of file thingtype.h.


|
inline |
Definition at line 185 of file thingtype.h.


|
inline |
|
inline |
Definition at line 182 of file thingtype.h.


|
inline |
Definition at line 141 of file thingtype.h.
|
inline |
Definition at line 171 of file thingtype.h.


|
inline |
Definition at line 172 of file thingtype.h.


|
inline |
Definition at line 208 of file thingtype.h.


|
inline |
Definition at line 186 of file thingtype.h.


|
inline |
Definition at line 190 of file thingtype.h.


|
inline |
Definition at line 181 of file thingtype.h.


|
inline |
Definition at line 174 of file thingtype.h.


|
inline |
Definition at line 207 of file thingtype.h.


|
inline |
Definition at line 193 of file thingtype.h.


|
inline |
Definition at line 206 of file thingtype.h.


|
inline |
Definition at line 204 of file thingtype.h.


|
inline |
Definition at line 205 of file thingtype.h.


|
inline |
Definition at line 177 of file thingtype.h.


|
inline |
Definition at line 179 of file thingtype.h.


| void ThingType::serialize | ( | const FileStreamPtr & | fin | ) |
| void ThingType::setPathable | ( | bool | var | ) |
Definition at line 629 of file thingtype.cpp.


| void ThingType::startListenerPainter | ( | float | duration | ) |
Definition at line 661 of file thingtype.cpp.


| void ThingType::unserialize | ( | uint16 | clientId, |
| ThingCategory | category, | ||
| const FileStreamPtr & | fin | ||
| ) |
Definition at line 140 of file thingtype.cpp.


| void ThingType::unserializeOtml | ( | const OTMLNodePtr & | node | ) |
Definition at line 410 of file thingtype.cpp.

