Otclient 1.0  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, int redrawFlag, LightView *lightView=nullptr)
 
void setId (uint32 id) override
 
void setPath (const Position &fromPosition, const Position &toPosition)
 
uint32 getId () override
 
MissilePtr asMissile ()
 
bool isMissile () override
 
const ThingTypePtrgetThingType () override
 
ThingTyperawGetThingType () override
 
- Public Member Functions inherited from Thing
 Thing ()
 
virtual ~Thing ()
 
virtual void draw (const Point &, float, bool, int=Otc::ReDrawThing, LightView *=nullptr)
 
void setPosition (const Position &position)
 
void requestDrawing (const bool force=false)
 
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 ()
 
int getRealSize ()
 
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 ()
 
bool hasAnimationPhases ()
 
AnimatorPtr getAnimator ()
 
AnimatorPtr getIdleAnimator ()
 
int getGroundSpeed ()
 
int getMaxTextLength ()
 
virtual Light getLight ()
 
virtual bool hasLight ()
 
int getMinimapColor ()
 
int getLensHelp ()
 
int getClothSlot ()
 
int getElevation ()
 
bool isGround ()
 
bool isGroundBorder ()
 
bool isOnBottom ()
 
bool isOnTop ()
 
virtual bool isContainer ()
 
bool isStackable ()
 
bool isForceUse ()
 
bool isMultiUse ()
 
bool isWritable ()
 
bool isChargeable ()
 
bool isWritableOnce ()
 
bool isFluidContainer ()
 
bool isSplash ()
 
bool isNotWalkable ()
 
bool isNotMoveable ()
 
bool isMoveable ()
 
bool blockProjectile ()
 
bool isNotPathable ()
 
bool isPickupable ()
 
bool isHangable ()
 
bool isHookSouth ()
 
bool isHookEast ()
 
bool isRotateable ()
 
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 ()
 
bool isTopGround ()
 
MarketData getMarketData ()
 
void startListenerPainter (const float duration)
 
bool cancelListenerPainter ()
 
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 41 of file missile.h.

Here is the caller graph for this function:

◆ draw()

void Missile::draw ( const Point dest,
float  scaleFactor,
int  redrawFlag,
LightView lightView = nullptr 
)

Definition at line 30 of file missile.cpp.

Here is the call graph for this function:

◆ getId()

uint32 Missile::getId ( )
inlineoverridevirtual

Reimplemented from Thing.

Definition at line 39 of file missile.h.

◆ getThingType()

const ThingTypePtr & Missile::getThingType ( )
overridevirtual

Reimplemented from Thing.

Definition at line 100 of file missile.cpp.

Here is the call graph for this function:

◆ isMissile()

bool Missile::isMissile ( )
inlineoverridevirtual

Reimplemented from Thing.

Definition at line 42 of file missile.h.

◆ rawGetThingType()

ThingType * Missile::rawGetThingType ( )
overridevirtual

Reimplemented from Thing.

Definition at line 105 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)
overridevirtual

Reimplemented from Thing.

Definition at line 93 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: