Otclient
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 (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> | |
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 123 of file thingtype.h.
ThingType::ThingType | ( | ) |
Definition at line 35 of file thingtype.cpp.
|
inline |
Definition at line 179 of file thingtype.h.
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.
void ThingType::exportImage | ( | std::string | fileName | ) |
Definition at line 326 of file thingtype.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 162 of file thingtype.h.
|
inline |
|
inline |
Definition at line 153 of file thingtype.h.
|
inline |
Definition at line 154 of file thingtype.h.
|
inline |
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.
|
inline |
Definition at line 157 of file thingtype.h.
|
inline |
Definition at line 143 of file thingtype.h.
|
inline |
|
inline |
|
inline |
Definition at line 161 of file thingtype.h.
|
inline |
Definition at line 159 of file thingtype.h.
|
inline |
Definition at line 163 of file thingtype.h.
|
inline |
Definition at line 158 of file thingtype.h.
|
inline |
Definition at line 160 of file thingtype.h.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 207 of file thingtype.h.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 142 of file thingtype.h.
|
inline |
Definition at line 139 of file thingtype.h.
|
inline |
Definition at line 189 of file thingtype.h.
|
inline |
Definition at line 190 of file thingtype.h.
|
inline |
Definition at line 194 of file thingtype.h.
|
inline |
Definition at line 186 of file thingtype.h.
|
inline |
Definition at line 193 of file thingtype.h.
|
inline |
Definition at line 192 of file thingtype.h.
|
inline |
Definition at line 173 of file thingtype.h.
|
inline |
Definition at line 197 of file thingtype.h.
|
inline |
Definition at line 168 of file thingtype.h.
|
inline |
Definition at line 187 of file thingtype.h.
|
inline |
Definition at line 175 of file thingtype.h.
|
inline |
Definition at line 170 of file thingtype.h.
|
inline |
Definition at line 195 of file thingtype.h.
|
inline |
Definition at line 164 of file thingtype.h.
|
inline |
Definition at line 165 of file thingtype.h.
|
inline |
Definition at line 182 of file thingtype.h.
|
inline |
Definition at line 184 of file thingtype.h.
|
inline |
Definition at line 183 of file thingtype.h.
|
inline |
Definition at line 196 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 171 of file thingtype.h.
|
inline |
Definition at line 178 of file thingtype.h.
|
inline |
Definition at line 180 of file thingtype.h.
|
inline |
|
inline |
Definition at line 177 of file thingtype.h.
|
inline |
Definition at line 138 of file thingtype.h.
|
inline |
Definition at line 166 of file thingtype.h.
|
inline |
Definition at line 167 of file thingtype.h.
|
inline |
Definition at line 181 of file thingtype.h.
|
inline |
Definition at line 185 of file thingtype.h.
|
inline |
Definition at line 176 of file thingtype.h.
|
inline |
Definition at line 169 of file thingtype.h.
|
inline |
Definition at line 202 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 199 of file thingtype.h.
|
inline |
Definition at line 200 of file thingtype.h.
|
inline |
Definition at line 172 of file thingtype.h.
|
inline |
Definition at line 174 of file thingtype.h.
void ThingType::serialize | ( | const FileStreamPtr & | fin | ) |
void ThingType::setPathable | ( | bool | var | ) |
Definition at line 568 of file thingtype.cpp.
void ThingType::unserialize | ( | uint16 | clientId, |
ThingCategory | category, | ||
const FileStreamPtr & | fin | ||
) |
Definition at line 134 of file thingtype.cpp.
void ThingType::unserializeOtml | ( | const OTMLNodePtr & | node | ) |
Definition at line 356 of file thingtype.cpp.