Otclient  14/8/2020
Missile Class Reference

#include <missile.h>

Inheritance diagram for Missile:
Collaboration diagram for Missile:

Public Member Functions

void draw (const Point &dest, float scaleFactor, bool animate, LightView *lightView=nullptr)
 
void setId (uint32 id)
 
void setPath (const Position &fromPosition, const Position &toPosition)
 
uint32 getId ()
 
MissilePtr asMissile ()
 
bool isMissile ()
 
const ThingTypePtrgetThingType ()
 
ThingTyperawGetThingType ()
 
- Public Member Functions inherited from Thing
 Thing ()
 
virtual ~Thing ()
 
void setPosition (const Position &position)
 
Position getPosition ()
 
int getStackPriority ()
 
const TilePtrgetTile ()
 
ContainerPtr getParentContainer ()
 
int getStackPos ()
 
virtual bool isItem ()
 
virtual bool isEffect ()
 
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 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 missile.h.

Member Function Documentation

◆ asMissile()

MissilePtr Missile::asMissile ( )
inline

Definition at line 45 of file missile.h.

Here is the caller graph for this function:

◆ draw()

void Missile::draw ( const Point dest,
float  scaleFactor,
bool  animate,
LightView lightView = nullptr 
)
virtual

Reimplemented from Thing.

Definition at line 30 of file missile.cpp.

Here is the call graph for this function:

◆ getId()

uint32 Missile::getId ( )
inlinevirtual

Reimplemented from Thing.

Definition at line 43 of file missile.h.

◆ getThingType()

const ThingTypePtr & Missile::getThingType ( )
virtual

Reimplemented from Thing.

Definition at line 91 of file missile.cpp.

Here is the call graph for this function:

◆ isMissile()

bool Missile::isMissile ( )
inlinevirtual

Reimplemented from Thing.

Definition at line 46 of file missile.h.

◆ rawGetThingType()

ThingType * Missile::rawGetThingType ( )
virtual

Reimplemented from Thing.

Definition at line 96 of file missile.cpp.

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

◆ setId()

void Missile::setId ( uint32  id)
virtual

Reimplemented from Thing.

Definition at line 84 of file missile.cpp.

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

◆ setPath()

void Missile::setPath ( const Position fromPosition,
const Position toPosition 
)

Definition at line 69 of file missile.cpp.

Here is the call graph for this function:

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