Otclient 1.0  14/8/2020
LocalPlayer Class Reference

#include <localplayer.h>

Inheritance diagram for LocalPlayer:
Collaboration diagram for LocalPlayer:

Public Member Functions

 LocalPlayer ()
 
void unlockWalk ()
 
void lockWalk (int millis=250)
 
void stopAutoWalk ()
 
bool autoWalk (const Position &destination)
 
bool canWalk (Otc::Direction direction)
 
void setStates (int states)
 
void setSkill (Otc::Skill skill, int level, int levelPercent)
 
void setBaseSkill (Otc::Skill skill, int baseLevel)
 
void setHealth (double health, double maxHealth)
 
void setFreeCapacity (double freeCapacity)
 
void setTotalCapacity (double totalCapacity)
 
void setExperience (double experience)
 
void setLevel (double level, double levelPercent)
 
void setMana (double mana, double maxMana)
 
void setMagicLevel (double magicLevel, double magicLevelPercent)
 
void setBaseMagicLevel (double baseMagicLevel)
 
void setSoul (double soul)
 
void setStamina (double stamina)
 
void setKnown (bool known)
 
void setPendingGame (bool pending)
 
void setInventoryItem (Otc::InventorySlot inventory, const ItemPtr &item)
 
void setVocation (int vocation)
 
void setPremium (bool premium)
 
void setRegenerationTime (double regenerationTime)
 
void setOfflineTrainingTime (double offlineTrainingTime)
 
void setSpells (const std::vector< int > &spells)
 
void setBlessings (int blessings)
 
int getStates ()
 
int getSkillLevel (Otc::Skill skill)
 
int getSkillBaseLevel (Otc::Skill skill)
 
int getSkillLevelPercent (Otc::Skill skill)
 
int getVocation ()
 
double getHealth ()
 
double getMaxHealth ()
 
double getFreeCapacity ()
 
double getTotalCapacity ()
 
double getExperience ()
 
double getLevel ()
 
double getLevelPercent ()
 
double getMana ()
 
double getMaxMana ()
 
double getMagicLevel ()
 
double getMagicLevelPercent ()
 
double getBaseMagicLevel ()
 
double getSoul ()
 
double getStamina ()
 
double getRegenerationTime ()
 
double getOfflineTrainingTime ()
 
std::vector< int > getSpells ()
 
ItemPtr getInventoryItem (Otc::InventorySlot inventory)
 
int getBlessings ()
 
bool hasSight (const Position &pos)
 
bool isKnown ()
 
bool isPreWalking ()
 
bool isAutoWalking ()
 
bool isServerWalking ()
 
bool isPremium ()
 
bool isPendingGame ()
 
LocalPlayerPtr asLocalPlayer ()
 
bool isLocalPlayer () override
 
void onAppear () override
 
void onPositionChange (const Position &newPos, const Position &oldPos) override
 
- Public Member Functions inherited from Player
 Player ()
 
virtual ~Player ()
 
PlayerPtr asPlayer ()
 
bool isPlayer () override
 
- Public Member Functions inherited from Creature
 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 ()
 
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 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 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 ()
 

Protected Member Functions

void walk (const Position &oldPos, const Position &newPos) override
 
void preWalk (Otc::Direction direction)
 
void cancelWalk (Otc::Direction direction=Otc::InvalidDirection)
 
void stopWalk () override
 
void updateWalk () override
 
void updateWalkOffset (int totalPixelsWalked) override
 
void terminateWalk () override
 
- Protected Member Functions inherited from Creature
void updateWalkingTile ()
 
virtual void updateWalkAnimation ()
 
virtual void nextWalkUpdate ()
 
void updateOutfitColor (Color color, Color finalColor, Color delta, int duration)
 
void updateJump ()
 

Friends

class Game
 

Additional Inherited Members

- Public Types inherited from Creature
enum  { SHIELD_BLINK_TICKS = 500, VOLATILE_SQUARE_DURATION = 1000 }
 
- Static Public Attributes inherited from Creature
static double speedA = 0
 
static double speedB = 0
 
static double speedC = 0
 
- Protected Attributes inherited from Creature
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 29 of file localplayer.h.

Constructor & Destructor Documentation

◆ LocalPlayer()

LocalPlayer::LocalPlayer ( )

Definition at line 30 of file localplayer.cpp.

Member Function Documentation

◆ asLocalPlayer()

LocalPlayerPtr LocalPlayer::asLocalPlayer ( )
inline

Definition at line 100 of file localplayer.h.

Here is the caller graph for this function:

◆ autoWalk()

bool LocalPlayer::autoWalk ( const Position destination)

Definition at line 156 of file localplayer.cpp.

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

◆ cancelWalk()

void LocalPlayer::cancelWalk ( Otc::Direction  direction = Otc::InvalidDirection)
protected

Definition at line 126 of file localplayer.cpp.

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

◆ canWalk()

bool LocalPlayer::canWalk ( Otc::Direction  direction)

Definition at line 65 of file localplayer.cpp.

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

◆ getBaseMagicLevel()

double LocalPlayer::getBaseMagicLevel ( )
inline

Definition at line 83 of file localplayer.h.

Here is the caller graph for this function:

◆ getBlessings()

int LocalPlayer::getBlessings ( )
inline

Definition at line 90 of file localplayer.h.

Here is the caller graph for this function:

◆ getExperience()

double LocalPlayer::getExperience ( )
inline

Definition at line 76 of file localplayer.h.

Here is the caller graph for this function:

◆ getFreeCapacity()

double LocalPlayer::getFreeCapacity ( )
inline

Definition at line 74 of file localplayer.h.

Here is the caller graph for this function:

◆ getHealth()

double LocalPlayer::getHealth ( )
inline

Definition at line 72 of file localplayer.h.

Here is the caller graph for this function:

◆ getInventoryItem()

ItemPtr LocalPlayer::getInventoryItem ( Otc::InventorySlot  inventory)
inline

Definition at line 89 of file localplayer.h.

Here is the caller graph for this function:

◆ getLevel()

double LocalPlayer::getLevel ( )
inline

Definition at line 77 of file localplayer.h.

Here is the caller graph for this function:

◆ getLevelPercent()

double LocalPlayer::getLevelPercent ( )
inline

Definition at line 78 of file localplayer.h.

Here is the caller graph for this function:

◆ getMagicLevel()

double LocalPlayer::getMagicLevel ( )
inline

Definition at line 81 of file localplayer.h.

Here is the caller graph for this function:

◆ getMagicLevelPercent()

double LocalPlayer::getMagicLevelPercent ( )
inline

Definition at line 82 of file localplayer.h.

Here is the caller graph for this function:

◆ getMana()

double LocalPlayer::getMana ( )
inline

Definition at line 79 of file localplayer.h.

Here is the caller graph for this function:

◆ getMaxHealth()

double LocalPlayer::getMaxHealth ( )
inline

Definition at line 73 of file localplayer.h.

Here is the caller graph for this function:

◆ getMaxMana()

double LocalPlayer::getMaxMana ( )
inline

Definition at line 80 of file localplayer.h.

Here is the caller graph for this function:

◆ getOfflineTrainingTime()

double LocalPlayer::getOfflineTrainingTime ( )
inline

Definition at line 87 of file localplayer.h.

Here is the caller graph for this function:

◆ getRegenerationTime()

double LocalPlayer::getRegenerationTime ( )
inline

Definition at line 86 of file localplayer.h.

Here is the caller graph for this function:

◆ getSkillBaseLevel()

int LocalPlayer::getSkillBaseLevel ( Otc::Skill  skill)
inline

Definition at line 69 of file localplayer.h.

Here is the caller graph for this function:

◆ getSkillLevel()

int LocalPlayer::getSkillLevel ( Otc::Skill  skill)
inline

Definition at line 68 of file localplayer.h.

Here is the caller graph for this function:

◆ getSkillLevelPercent()

int LocalPlayer::getSkillLevelPercent ( Otc::Skill  skill)
inline

Definition at line 70 of file localplayer.h.

Here is the caller graph for this function:

◆ getSoul()

double LocalPlayer::getSoul ( )
inline

Definition at line 84 of file localplayer.h.

Here is the caller graph for this function:

◆ getSpells()

std::vector<int> LocalPlayer::getSpells ( )
inline

Definition at line 88 of file localplayer.h.

◆ getStamina()

double LocalPlayer::getStamina ( )
inline

Definition at line 85 of file localplayer.h.

Here is the caller graph for this function:

◆ getStates()

int LocalPlayer::getStates ( )
inline

Definition at line 67 of file localplayer.h.

Here is the caller graph for this function:

◆ getTotalCapacity()

double LocalPlayer::getTotalCapacity ( )
inline

Definition at line 75 of file localplayer.h.

Here is the caller graph for this function:

◆ getVocation()

int LocalPlayer::getVocation ( )
inline

Definition at line 71 of file localplayer.h.

Here is the caller graph for this function:

◆ hasSight()

bool LocalPlayer::hasSight ( const Position pos)

Definition at line 528 of file localplayer.cpp.

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

◆ isAutoWalking()

bool LocalPlayer::isAutoWalking ( )
inline

Definition at line 95 of file localplayer.h.

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

◆ isKnown()

bool LocalPlayer::isKnown ( )
inline

Definition at line 93 of file localplayer.h.

Here is the caller graph for this function:

◆ isLocalPlayer()

bool LocalPlayer::isLocalPlayer ( )
inlineoverridevirtual

Reimplemented from Thing.

Definition at line 101 of file localplayer.h.

◆ isPendingGame()

bool LocalPlayer::isPendingGame ( )
inline

Definition at line 98 of file localplayer.h.

◆ isPremium()

bool LocalPlayer::isPremium ( )
inline

Definition at line 97 of file localplayer.h.

Here is the caller graph for this function:

◆ isPreWalking()

bool LocalPlayer::isPreWalking ( )
inline

Definition at line 94 of file localplayer.h.

Here is the caller graph for this function:

◆ isServerWalking()

bool LocalPlayer::isServerWalking ( )
inline

Definition at line 96 of file localplayer.h.

Here is the caller graph for this function:

◆ lockWalk()

void LocalPlayer::lockWalk ( int  millis = 250)

Definition at line 60 of file localplayer.cpp.

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

◆ onAppear()

void LocalPlayer::onAppear ( )
overridevirtual

Reimplemented from Creature.

Definition at line 272 of file localplayer.cpp.

Here is the call graph for this function:

◆ onPositionChange()

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

Reimplemented from Creature.

Definition at line 283 of file localplayer.cpp.

Here is the call graph for this function:

◆ preWalk()

void LocalPlayer::preWalk ( Otc::Direction  direction)
protected

Definition at line 107 of file localplayer.cpp.

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

◆ setBaseMagicLevel()

void LocalPlayer::setBaseMagicLevel ( double  baseMagicLevel)

Definition at line 424 of file localplayer.cpp.

Here is the call graph for this function:

◆ setBaseSkill()

void LocalPlayer::setBaseSkill ( Otc::Skill  skill,
int  baseLevel 
)

Definition at line 321 of file localplayer.cpp.

Here is the call graph for this function:

◆ setBlessings()

void LocalPlayer::setBlessings ( int  blessings)

Definition at line 518 of file localplayer.cpp.

Here is the call graph for this function:

◆ setExperience()

void LocalPlayer::setExperience ( double  experience)

Definition at line 375 of file localplayer.cpp.

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

◆ setFreeCapacity()

void LocalPlayer::setFreeCapacity ( double  freeCapacity)

Definition at line 355 of file localplayer.cpp.

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

◆ setHealth()

void LocalPlayer::setHealth ( double  health,
double  maxHealth 
)

Definition at line 336 of file localplayer.cpp.

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

◆ setInventoryItem()

void LocalPlayer::setInventoryItem ( Otc::InventorySlot  inventory,
const ItemPtr item 
)

Definition at line 454 of file localplayer.cpp.

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

◆ setKnown()

void LocalPlayer::setKnown ( bool  known)
inline

Definition at line 57 of file localplayer.h.

Here is the caller graph for this function:

◆ setLevel()

void LocalPlayer::setLevel ( double  level,
double  levelPercent 
)

Definition at line 385 of file localplayer.cpp.

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

◆ setMagicLevel()

void LocalPlayer::setMagicLevel ( double  magicLevel,
double  magicLevelPercent 
)

Definition at line 412 of file localplayer.cpp.

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

◆ setMana()

void LocalPlayer::setMana ( double  mana,
double  maxMana 
)

Definition at line 397 of file localplayer.cpp.

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

◆ setOfflineTrainingTime()

void LocalPlayer::setOfflineTrainingTime ( double  offlineTrainingTime)

Definition at line 498 of file localplayer.cpp.

Here is the call graph for this function:

◆ setPendingGame()

void LocalPlayer::setPendingGame ( bool  pending)
inline

Definition at line 58 of file localplayer.h.

Here is the caller graph for this function:

◆ setPremium()

void LocalPlayer::setPremium ( bool  premium)

Definition at line 479 of file localplayer.cpp.

Here is the call graph for this function:

◆ setRegenerationTime()

void LocalPlayer::setRegenerationTime ( double  regenerationTime)

Definition at line 488 of file localplayer.cpp.

Here is the call graph for this function:

◆ setSkill()

void LocalPlayer::setSkill ( Otc::Skill  skill,
int  level,
int  levelPercent 
)

Definition at line 303 of file localplayer.cpp.

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

◆ setSoul()

void LocalPlayer::setSoul ( double  soul)

Definition at line 434 of file localplayer.cpp.

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

◆ setSpells()

void LocalPlayer::setSpells ( const std::vector< int > &  spells)

Definition at line 508 of file localplayer.cpp.

Here is the call graph for this function:

◆ setStamina()

void LocalPlayer::setStamina ( double  stamina)

Definition at line 444 of file localplayer.cpp.

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

◆ setStates()

void LocalPlayer::setStates ( int  states)

Definition at line 293 of file localplayer.cpp.

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

◆ setTotalCapacity()

void LocalPlayer::setTotalCapacity ( double  totalCapacity)

Definition at line 365 of file localplayer.cpp.

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

◆ setVocation()

void LocalPlayer::setVocation ( int  vocation)

Definition at line 469 of file localplayer.cpp.

Here is the call graph for this function:

◆ stopAutoWalk()

void LocalPlayer::stopAutoWalk ( )

Definition at line 218 of file localplayer.cpp.

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

◆ stopWalk()

void LocalPlayer::stopWalk ( )
overrideprotectedvirtual

Reimplemented from Creature.

Definition at line 228 of file localplayer.cpp.

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

◆ terminateWalk()

void LocalPlayer::terminateWalk ( )
overrideprotectedvirtual

Reimplemented from Creature.

Definition at line 255 of file localplayer.cpp.

Here is the call graph for this function:

◆ unlockWalk()

void LocalPlayer::unlockWalk ( )
inline

Definition at line 38 of file localplayer.h.

Here is the caller graph for this function:

◆ updateWalk()

void LocalPlayer::updateWalk ( )
inlineoverrideprotectedvirtual

Reimplemented from Creature.

Definition at line 111 of file localplayer.h.

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

◆ updateWalkOffset()

void LocalPlayer::updateWalkOffset ( int  totalPixelsWalked)
overrideprotectedvirtual

Reimplemented from Creature.

Definition at line 235 of file localplayer.cpp.

Here is the call graph for this function:

◆ walk()

void LocalPlayer::walk ( const Position oldPos,
const Position newPos 
)
overrideprotectedvirtual

Reimplemented from Creature.

Definition at line 84 of file localplayer.cpp.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ Game

friend class Game
friend

Definition at line 113 of file localplayer.h.


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