Otclient 1.0  14/8/2020
Creature Class Reference

#include <creature.h>

Inheritance diagram for Creature:
Collaboration diagram for Creature:

Public Types

enum  { SHIELD_BLINK_TICKS = 500, VOLATILE_SQUARE_DURATION = 1000 }
 

Public Member Functions

 Creature ()
 
virtual void draw (const Point &dest, float scaleFactor, int reDrawFlags, LightView *lightView=nullptr)
 
void internalDrawOutfit (Point dest, float scaleFactor, bool animateWalk, Otc::Direction direction)
 
void drawOutfit (const Rect &destRect, bool resize)
 
void drawInformation (const Point &point, bool useGray, const Rect &parentRect, int drawFlags)
 
void setId (uint32 id) override
 
void setName (const std::string &name)
 
void setHealthPercent (uint8 healthPercent)
 
void setDirection (Otc::Direction direction)
 
void setOutfit (const Outfit &outfit)
 
void setOutfitColor (const Color &color, int duration)
 
void setLight (const Light &light)
 
void setSpeed (uint16 speed)
 
void setBaseSpeed (double baseSpeed)
 
void setSkull (uint8 skull)
 
void setShield (uint8 shield)
 
void setEmblem (uint8 emblem)
 
void setType (uint8 type)
 
void setIcon (uint8 icon)
 
void setSkullTexture (const std::string &filename)
 
void setShieldTexture (const std::string &filename, bool blink)
 
void setEmblemTexture (const std::string &filename)
 
void setTypeTexture (const std::string &filename)
 
void setIconTexture (const std::string &filename)
 
void setPassable (bool passable)
 
void addTimedSquare (uint8 color)
 
void removeTimedSquare ()
 
void showStaticSquare (const Color &color)
 
void hideStaticSquare ()
 
uint32 getId () override
 
std::string getName ()
 
uint8 getHealthPercent ()
 
Otc::Direction getDirection ()
 
Outfit getOutfit ()
 
Light getLight () override
 
bool hasLight () override
 
uint16 getSpeed ()
 
double getBaseSpeed ()
 
uint8 getSkull ()
 
uint8 getShield ()
 
uint8 getEmblem ()
 
uint8 getType ()
 
uint8 getIcon ()
 
bool isPassable ()
 
int getStepDuration (bool ignoreDiagonal=false, Otc::Direction dir=Otc::InvalidDirection)
 
Point getDrawOffset ()
 
Point getWalkOffset ()
 
PointF getJumpOffset ()
 
Position getLastStepFromPosition ()
 
Position getLastStepToPosition ()
 
float getStepProgress ()
 
float getStepTicksLeft ()
 
ticks_t getWalkTicksElapsed ()
 
std::array< double, Otc::LastSpeedFormulagetSpeedFormulaArray ()
 
Point getDisplacement () override
 
int getDisplacementX () override
 
int getDisplacementY () override
 
int getExactSize (int layer=0, int xPattern=0, int yPattern=0, int zPattern=0, int animationPhase=0) override
 
int getTotalAnimationPhase ()
 
int getCurrentAnimationPhase (bool mount=false)
 
void updateShield ()
 
void turn (Otc::Direction direction)
 
void jump (int height, int duration)
 
void allowAppearWalk ()
 
virtual void walk (const Position &oldPos, const Position &newPos)
 
virtual void stopWalk ()
 
bool isWalking ()
 
bool isRemoved ()
 
bool isInvisible ()
 
bool isDead ()
 
bool canBeSeen ()
 
bool isCreature () override
 
bool isParalyzed () const
 
void updateDynamicInformation (bool update)
 
bool updateDynamicInformation () const
 
const ThingTypePtrgetThingType () override
 
ThingTyperawGetThingType () override
 
ThingTyperawGetMountThingType ()
 
void onPositionChange (const Position &newPos, const Position &oldPos) override
 
void onAppear () override
 
void onDisappear () override
 
virtual void onDeath ()
 
- 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 isMissile ()
 
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 ()
 
int getLayers ()
 
int getNumPatternX ()
 
int getNumPatternY ()
 
int getNumPatternZ ()
 
int getAnimationPhases ()
 
bool hasAnimationPhases ()
 
AnimatorPtr getAnimator ()
 
AnimatorPtr getIdleAnimator ()
 
int getGroundSpeed ()
 
int getMaxTextLength ()
 
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 ()
 
- 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 ()
 

Static Public Attributes

static double speedA = 0
 
static double speedB = 0
 
static double speedC = 0
 

Protected Member Functions

void updateWalkingTile ()
 
virtual void updateWalkAnimation ()
 
virtual void updateWalkOffset (int totalPixelsWalked)
 
virtual void updateWalk ()
 
virtual void nextWalkUpdate ()
 
virtual void terminateWalk ()
 
void updateOutfitColor (Color color, Color finalColor, Color delta, int duration)
 
void updateJump ()
 

Protected Attributes

uint32 m_id
 
std::string m_name
 
Otc::Direction m_direction
 
Outfit m_outfit
 
Light m_light
 
int m_speed
 
int m_calculatedStepSpeed
 
double m_baseSpeed
 
uint8 m_healthPercent
 
uint8 m_skull
 
uint8 m_shield
 
uint8 m_emblem
 
uint8 m_type
 
uint8 m_icon
 
TexturePtr m_skullTexture
 
TexturePtr m_shieldTexture
 
TexturePtr m_emblemTexture
 
TexturePtr m_typeTexture
 
TexturePtr m_iconTexture
 
stdext::boolean< true > m_showShieldTexture
 
stdext::boolean< false > m_shieldBlink
 
stdext::boolean< false > m_passable
 
stdext::boolean< false > m_showTimedSquare
 
stdext::boolean< false > m_showStaticSquare
 
stdext::boolean< true > m_removed
 
Color m_timedSquareColor
 
Color m_staticSquareColor
 
Color m_informationColor
 
Color m_outfitColor
 
CachedText m_nameCache
 
ScheduledEventPtr m_outfitColorUpdateEvent
 
Timer m_outfitColorTimer
 
std::array< double, Otc::LastSpeedFormulam_speedFormula
 
int m_walkAnimationPhase
 
int m_walkedPixels
 
uint m_footStep
 
Timer m_walkTimer
 
Timer m_footTimer
 
TilePtr m_walkingTile
 
stdext::boolean< false > m_walking
 
stdext::boolean< false > m_allowAppearWalk
 
stdext::boolean< false > m_updateDynamicInformation
 
ScheduledEventPtr m_walkUpdateEvent
 
ScheduledEventPtr m_walkFinishAnimEvent
 
EventPtr m_disappearEvent
 
Point m_walkOffset
 
Otc::Direction m_walkTurnDirection
 
Otc::Direction m_lastStepDirection
 
Position m_lastStepFromPosition
 
Position m_lastStepToPosition
 
Position m_oldPosition
 
float m_jumpHeight
 
float m_jumpDuration
 
PointF m_jumpOffset
 
Timer m_jumpTimer
 
- Protected Attributes inherited from Thing
Position m_position
 
uint16 m_datId
 

Detailed Description

Definition at line 37 of file creature.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
SHIELD_BLINK_TICKS 
VOLATILE_SQUARE_DURATION 

Definition at line 40 of file creature.h.

Constructor & Destructor Documentation

◆ Creature()

Creature::Creature ( )

Definition at line 48 of file creature.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ addTimedSquare()

void Creature::addTimedSquare ( uint8  color)

Definition at line 834 of file creature.cpp.

Here is the call graph for this function:

◆ allowAppearWalk()

void Creature::allowAppearWalk ( )
inline

Definition at line 121 of file creature.h.

◆ canBeSeen()

bool Creature::canBeSeen ( )
inline

Definition at line 129 of file creature.h.

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

◆ draw()

void Creature::draw ( const Point dest,
float  scaleFactor,
int  reDrawFlags,
LightView lightView = nullptr 
)
virtual

Definition at line 70 of file creature.cpp.

Here is the call graph for this function:

◆ drawInformation()

void Creature::drawInformation ( const Point point,
bool  useGray,
const Rect parentRect,
int  drawFlags 
)

Definition at line 226 of file creature.cpp.

Here is the call graph for this function:

◆ drawOutfit()

void Creature::drawOutfit ( const Rect destRect,
bool  resize 
)

Definition at line 196 of file creature.cpp.

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

◆ getBaseSpeed()

double Creature::getBaseSpeed ( )
inline

Definition at line 90 of file creature.h.

Here is the caller graph for this function:

◆ getCurrentAnimationPhase()

int Creature::getCurrentAnimationPhase ( bool  mount = false)

Definition at line 978 of file creature.cpp.

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

◆ getDirection()

Otc::Direction Creature::getDirection ( )
inline

Definition at line 85 of file creature.h.

Here is the caller graph for this function:

◆ getDisplacement()

Point Creature::getDisplacement ( )
overridevirtual

Reimplemented from Thing.

Definition at line 921 of file creature.cpp.

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

◆ getDisplacementX()

int Creature::getDisplacementX ( )
overridevirtual

Reimplemented from Thing.

Definition at line 932 of file creature.cpp.

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

◆ getDisplacementY()

int Creature::getDisplacementY ( )
overridevirtual

Reimplemented from Thing.

Definition at line 946 of file creature.cpp.

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

◆ getDrawOffset()

Point Creature::getDrawOffset ( )

Definition at line 861 of file creature.cpp.

Here is the call graph for this function:

◆ getEmblem()

uint8 Creature::getEmblem ( )
inline

Definition at line 93 of file creature.h.

Here is the caller graph for this function:

◆ getExactSize()

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

Reimplemented from Thing.

Definition at line 996 of file creature.cpp.

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

◆ getHealthPercent()

uint8 Creature::getHealthPercent ( )
inline

Definition at line 84 of file creature.h.

Here is the caller graph for this function:

◆ getIcon()

uint8 Creature::getIcon ( )
inline

Definition at line 95 of file creature.h.

Here is the caller graph for this function:

◆ getId()

uint32 Creature::getId ( )
inlineoverridevirtual

Reimplemented from Thing.

Definition at line 82 of file creature.h.

Here is the caller graph for this function:

◆ getJumpOffset()

PointF Creature::getJumpOffset ( )
inline

Definition at line 100 of file creature.h.

◆ getLastStepFromPosition()

Position Creature::getLastStepFromPosition ( )
inline

Definition at line 101 of file creature.h.

◆ getLastStepToPosition()

Position Creature::getLastStepToPosition ( )
inline

Definition at line 102 of file creature.h.

◆ getLight()

Light Creature::getLight ( )
overridevirtual

Reimplemented from Thing.

Definition at line 961 of file creature.cpp.

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

◆ getName()

std::string Creature::getName ( )
inline

Definition at line 83 of file creature.h.

Here is the caller graph for this function:

◆ getOutfit()

Outfit Creature::getOutfit ( )
inline

Definition at line 86 of file creature.h.

Here is the caller graph for this function:

◆ getShield()

uint8 Creature::getShield ( )
inline

Definition at line 92 of file creature.h.

Here is the caller graph for this function:

◆ getSkull()

uint8 Creature::getSkull ( )
inline

Definition at line 91 of file creature.h.

Here is the caller graph for this function:

◆ getSpeed()

uint16 Creature::getSpeed ( )
inline

Definition at line 89 of file creature.h.

Here is the caller graph for this function:

◆ getSpeedFormulaArray()

std::array<double, Otc::LastSpeedFormula> Creature::getSpeedFormulaArray ( )
inline

Definition at line 106 of file creature.h.

◆ getStepDuration()

int Creature::getStepDuration ( bool  ignoreDiagonal = false,
Otc::Direction  dir = Otc::InvalidDirection 
)

Definition at line 877 of file creature.cpp.

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

◆ getStepProgress()

float Creature::getStepProgress ( )
inline

Definition at line 103 of file creature.h.

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

◆ getStepTicksLeft()

float Creature::getStepTicksLeft ( )
inline

Definition at line 104 of file creature.h.

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

◆ getThingType()

const ThingTypePtr & Creature::getThingType ( )
overridevirtual

Reimplemented from Thing.

Definition at line 1018 of file creature.cpp.

Here is the call graph for this function:

◆ getTotalAnimationPhase()

int Creature::getTotalAnimationPhase ( )

Definition at line 971 of file creature.cpp.

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

◆ getType()

uint8 Creature::getType ( )
inline

Definition at line 94 of file creature.h.

Here is the caller graph for this function:

◆ getWalkOffset()

Point Creature::getWalkOffset ( )
inline

Definition at line 99 of file creature.h.

◆ getWalkTicksElapsed()

ticks_t Creature::getWalkTicksElapsed ( )
inline

Definition at line 105 of file creature.h.

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

◆ hasLight()

bool Creature::hasLight ( )
inlineoverridevirtual

Reimplemented from Thing.

Definition at line 88 of file creature.h.

Here is the call graph for this function:

◆ hideStaticSquare()

void Creature::hideStaticSquare ( )
inline

Definition at line 80 of file creature.h.

Here is the caller graph for this function:

◆ internalDrawOutfit()

void Creature::internalDrawOutfit ( Point  dest,
float  scaleFactor,
bool  animateWalk,
Otc::Direction  direction 
)

Definition at line 107 of file creature.cpp.

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

◆ isCreature()

bool Creature::isCreature ( )
inlineoverridevirtual

Reimplemented from Thing.

Definition at line 130 of file creature.h.

◆ isDead()

bool Creature::isDead ( )
inline

Definition at line 128 of file creature.h.

Here is the caller graph for this function:

◆ isInvisible()

bool Creature::isInvisible ( )
inline

Definition at line 127 of file creature.h.

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

◆ isParalyzed()

bool Creature::isParalyzed ( ) const
inline

Definition at line 131 of file creature.h.

Here is the caller graph for this function:

◆ isPassable()

bool Creature::isPassable ( )
inline

Definition at line 96 of file creature.h.

◆ isRemoved()

bool Creature::isRemoved ( )
inline

Definition at line 126 of file creature.h.

Here is the caller graph for this function:

◆ isWalking()

bool Creature::isWalking ( )
inline

Definition at line 125 of file creature.h.

Here is the caller graph for this function:

◆ jump()

void Creature::jump ( int  height,
int  duration 
)

Definition at line 372 of file creature.cpp.

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

◆ nextWalkUpdate()

void Creature::nextWalkUpdate ( )
protectedvirtual

Definition at line 562 of file creature.cpp.

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

◆ onAppear()

void Creature::onAppear ( )
overridevirtual

Reimplemented from Thing.

Reimplemented in LocalPlayer.

Definition at line 432 of file creature.cpp.

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

◆ onDeath()

void Creature::onDeath ( )
virtual

Definition at line 489 of file creature.cpp.

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

◆ onDisappear()

void Creature::onDisappear ( )
overridevirtual

Reimplemented from Thing.

Definition at line 464 of file creature.cpp.

Here is the call graph for this function:

◆ onPositionChange()

void Creature::onPositionChange ( const Position newPos,
const Position oldPos 
)
overridevirtual

Reimplemented from Thing.

Reimplemented in LocalPlayer.

Definition at line 427 of file creature.cpp.

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

◆ rawGetMountThingType()

ThingType * Creature::rawGetMountThingType ( )

Definition at line 1028 of file creature.cpp.

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

◆ rawGetThingType()

ThingType * Creature::rawGetThingType ( )
overridevirtual

Reimplemented from Thing.

Definition at line 1023 of file creature.cpp.

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

◆ removeTimedSquare()

void Creature::removeTimedSquare ( )
inline

Definition at line 78 of file creature.h.

◆ setBaseSpeed()

void Creature::setBaseSpeed ( double  baseSpeed)

Definition at line 755 of file creature.cpp.

Here is the call graph for this function:

◆ setDirection()

void Creature::setDirection ( Otc::Direction  direction)

Definition at line 672 of file creature.cpp.

Here is the caller graph for this function:

◆ setEmblem()

void Creature::setEmblem ( uint8  emblem)

Definition at line 781 of file creature.cpp.

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

◆ setEmblemTexture()

void Creature::setEmblemTexture ( const std::string &  filename)

Definition at line 819 of file creature.cpp.

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

◆ setHealthPercent()

void Creature::setHealthPercent ( uint8  healthPercent)

Definition at line 646 of file creature.cpp.

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

◆ setIcon()

void Creature::setIcon ( uint8  icon)

Definition at line 793 of file creature.cpp.

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

◆ setIconTexture()

void Creature::setIconTexture ( const std::string &  filename)

Definition at line 829 of file creature.cpp.

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

◆ setId()

void Creature::setId ( uint32  id)
inlineoverridevirtual

Reimplemented from Thing.

Definition at line 56 of file creature.h.

Here is the caller graph for this function:

◆ setLight()

void Creature::setLight ( const Light light)
inline

Definition at line 62 of file creature.h.

Here is the caller graph for this function:

◆ setName()

void Creature::setName ( const std::string &  name)

Definition at line 640 of file creature.cpp.

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

◆ setOutfit()

void Creature::setOutfit ( const Outfit outfit)

Definition at line 678 of file creature.cpp.

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

◆ setOutfitColor()

void Creature::setOutfitColor ( const Color color,
int  duration 
)

Definition at line 701 of file creature.cpp.

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

◆ setPassable()

void Creature::setPassable ( bool  passable)
inline

Definition at line 75 of file creature.h.

Here is the caller graph for this function:

◆ setShield()

void Creature::setShield ( uint8  shield)

Definition at line 773 of file creature.cpp.

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

◆ setShieldTexture()

void Creature::setShieldTexture ( const std::string &  filename,
bool  blink 
)

Definition at line 804 of file creature.cpp.

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

◆ setSkull()

void Creature::setSkull ( uint8  skull)

Definition at line 765 of file creature.cpp.

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

◆ setSkullTexture()

void Creature::setSkullTexture ( const std::string &  filename)

Definition at line 799 of file creature.cpp.

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

◆ setSpeed()

void Creature::setSpeed ( uint16  speed)

Definition at line 733 of file creature.cpp.

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

◆ setType()

void Creature::setType ( uint8  type)

Definition at line 787 of file creature.cpp.

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

◆ setTypeTexture()

void Creature::setTypeTexture ( const std::string &  filename)

Definition at line 824 of file creature.cpp.

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

◆ showStaticSquare()

void Creature::showStaticSquare ( const Color color)
inline

Definition at line 79 of file creature.h.

Here is the caller graph for this function:

◆ stopWalk()

void Creature::stopWalk ( )
virtual

Reimplemented in LocalPlayer.

Definition at line 363 of file creature.cpp.

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

◆ terminateWalk()

void Creature::terminateWalk ( )
protectedvirtual

Reimplemented in LocalPlayer.

Definition at line 607 of file creature.cpp.

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

◆ turn()

void Creature::turn ( Otc::Direction  direction)

Definition at line 323 of file creature.cpp.

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

◆ updateDynamicInformation() [1/2]

bool Creature::updateDynamicInformation ( ) const
inline

Definition at line 134 of file creature.h.

◆ updateDynamicInformation() [2/2]

void Creature::updateDynamicInformation ( bool  update)
inline

Definition at line 133 of file creature.h.

◆ updateJump()

void Creature::updateJump ( )
protected

Definition at line 384 of file creature.cpp.

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

◆ updateOutfitColor()

void Creature::updateOutfitColor ( Color  color,
Color  finalColor,
Color  delta,
int  duration 
)
protected

Definition at line 718 of file creature.cpp.

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

◆ updateShield()

void Creature::updateShield ( )

Definition at line 846 of file creature.cpp.

Here is the call graph for this function:

◆ updateWalk()

void Creature::updateWalk ( )
protectedvirtual

Reimplemented in LocalPlayer.

Definition at line 582 of file creature.cpp.

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

◆ updateWalkAnimation()

void Creature::updateWalkAnimation ( )
protectedvirtual

Definition at line 494 of file creature.cpp.

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

◆ updateWalkingTile()

void Creature::updateWalkingTile ( )
protected

Definition at line 525 of file creature.cpp.

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

◆ updateWalkOffset()

void Creature::updateWalkOffset ( int  totalPixelsWalked)
protectedvirtual

Reimplemented in LocalPlayer.

Definition at line 511 of file creature.cpp.

Here is the caller graph for this function:

◆ walk()

void Creature::walk ( const Position oldPos,
const Position newPos 
)
virtual

Reimplemented in LocalPlayer.

Definition at line 333 of file creature.cpp.

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

Member Data Documentation

◆ m_allowAppearWalk

stdext::boolean<false> Creature::m_allowAppearWalk
protected

Definition at line 201 of file creature.h.

◆ m_baseSpeed

double Creature::m_baseSpeed
protected

Definition at line 165 of file creature.h.

◆ m_calculatedStepSpeed

int Creature::m_calculatedStepSpeed
protected

Definition at line 163 of file creature.h.

◆ m_direction

Otc::Direction Creature::m_direction
protected

Definition at line 158 of file creature.h.

◆ m_disappearEvent

EventPtr Creature::m_disappearEvent
protected

Definition at line 205 of file creature.h.

◆ m_emblem

uint8 Creature::m_emblem
protected

Definition at line 169 of file creature.h.

◆ m_emblemTexture

TexturePtr Creature::m_emblemTexture
protected

Definition at line 174 of file creature.h.

◆ m_footStep

uint Creature::m_footStep
protected

Definition at line 196 of file creature.h.

◆ m_footTimer

Timer Creature::m_footTimer
protected

Definition at line 198 of file creature.h.

◆ m_healthPercent

uint8 Creature::m_healthPercent
protected

Definition at line 166 of file creature.h.

◆ m_icon

uint8 Creature::m_icon
protected

Definition at line 171 of file creature.h.

◆ m_iconTexture

TexturePtr Creature::m_iconTexture
protected

Definition at line 176 of file creature.h.

◆ m_id

uint32 Creature::m_id
protected

Definition at line 156 of file creature.h.

◆ m_informationColor

Color Creature::m_informationColor
protected

Definition at line 185 of file creature.h.

◆ m_jumpDuration

float Creature::m_jumpDuration
protected

Definition at line 215 of file creature.h.

◆ m_jumpHeight

float Creature::m_jumpHeight
protected

Definition at line 214 of file creature.h.

◆ m_jumpOffset

PointF Creature::m_jumpOffset
protected

Definition at line 216 of file creature.h.

◆ m_jumpTimer

Timer Creature::m_jumpTimer
protected

Definition at line 217 of file creature.h.

◆ m_lastStepDirection

Otc::Direction Creature::m_lastStepDirection
protected

Definition at line 208 of file creature.h.

◆ m_lastStepFromPosition

Position Creature::m_lastStepFromPosition
protected

Definition at line 209 of file creature.h.

◆ m_lastStepToPosition

Position Creature::m_lastStepToPosition
protected

Definition at line 210 of file creature.h.

◆ m_light

Light Creature::m_light
protected

Definition at line 160 of file creature.h.

◆ m_name

std::string Creature::m_name
protected

Definition at line 157 of file creature.h.

◆ m_nameCache

CachedText Creature::m_nameCache
protected

Definition at line 187 of file creature.h.

◆ m_oldPosition

Position Creature::m_oldPosition
protected

Definition at line 211 of file creature.h.

◆ m_outfit

Outfit Creature::m_outfit
protected

Definition at line 159 of file creature.h.

◆ m_outfitColor

Color Creature::m_outfitColor
protected

Definition at line 186 of file creature.h.

◆ m_outfitColorTimer

Timer Creature::m_outfitColorTimer
protected

Definition at line 189 of file creature.h.

◆ m_outfitColorUpdateEvent

ScheduledEventPtr Creature::m_outfitColorUpdateEvent
protected

Definition at line 188 of file creature.h.

◆ m_passable

stdext::boolean<false> Creature::m_passable
protected

Definition at line 179 of file creature.h.

◆ m_removed

stdext::boolean<true> Creature::m_removed
protected

Definition at line 182 of file creature.h.

◆ m_shield

uint8 Creature::m_shield
protected

Definition at line 168 of file creature.h.

◆ m_shieldBlink

stdext::boolean<false> Creature::m_shieldBlink
protected

Definition at line 178 of file creature.h.

◆ m_shieldTexture

TexturePtr Creature::m_shieldTexture
protected

Definition at line 173 of file creature.h.

◆ m_showShieldTexture

stdext::boolean<true> Creature::m_showShieldTexture
protected

Definition at line 177 of file creature.h.

◆ m_showStaticSquare

stdext::boolean<false> Creature::m_showStaticSquare
protected

Definition at line 181 of file creature.h.

◆ m_showTimedSquare

stdext::boolean<false> Creature::m_showTimedSquare
protected

Definition at line 180 of file creature.h.

◆ m_skull

uint8 Creature::m_skull
protected

Definition at line 167 of file creature.h.

◆ m_skullTexture

TexturePtr Creature::m_skullTexture
protected

Definition at line 172 of file creature.h.

◆ m_speed

int Creature::m_speed
protected

Definition at line 162 of file creature.h.

◆ m_speedFormula

std::array<double, Otc::LastSpeedFormula> Creature::m_speedFormula
protected

Definition at line 191 of file creature.h.

◆ m_staticSquareColor

Color Creature::m_staticSquareColor
protected

Definition at line 184 of file creature.h.

◆ m_timedSquareColor

Color Creature::m_timedSquareColor
protected

Definition at line 183 of file creature.h.

◆ m_type

uint8 Creature::m_type
protected

Definition at line 170 of file creature.h.

◆ m_typeTexture

TexturePtr Creature::m_typeTexture
protected

Definition at line 175 of file creature.h.

◆ m_updateDynamicInformation

stdext::boolean<false> Creature::m_updateDynamicInformation
protected

Definition at line 202 of file creature.h.

◆ m_walkAnimationPhase

int Creature::m_walkAnimationPhase
protected

Definition at line 194 of file creature.h.

◆ m_walkedPixels

int Creature::m_walkedPixels
protected

Definition at line 195 of file creature.h.

◆ m_walkFinishAnimEvent

ScheduledEventPtr Creature::m_walkFinishAnimEvent
protected

Definition at line 204 of file creature.h.

◆ m_walking

stdext::boolean<false> Creature::m_walking
protected

Definition at line 200 of file creature.h.

◆ m_walkingTile

TilePtr Creature::m_walkingTile
protected

Definition at line 199 of file creature.h.

◆ m_walkOffset

Point Creature::m_walkOffset
protected

Definition at line 206 of file creature.h.

◆ m_walkTimer

Timer Creature::m_walkTimer
protected

Definition at line 197 of file creature.h.

◆ m_walkTurnDirection

Otc::Direction Creature::m_walkTurnDirection
protected

Definition at line 207 of file creature.h.

◆ m_walkUpdateEvent

ScheduledEventPtr Creature::m_walkUpdateEvent
protected

Definition at line 203 of file creature.h.

◆ speedA

double Creature::speedA = 0
static

Definition at line 45 of file creature.h.

◆ speedB

double Creature::speedB = 0
static

Definition at line 45 of file creature.h.

◆ speedC

double Creature::speedC = 0
static

Definition at line 45 of file creature.h.


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