ManaPlus
|
#include <localplayer.h>
Public Member Functions | |
LocalPlayer (const BeingId id, const BeingTypeId subType) | |
~LocalPlayer () | |
void | logic () |
void | slowLogic () |
void | setAction (const BeingActionT &action, const int attackId) |
Position | getNextWalkPosition (const unsigned char dir) const |
void | nextTile () |
bool | pickUp (FloorItem *const item) |
void | actorSpriteDestroyed (const ActorSprite &actorSprite) |
int | getAttackRange () const |
int | getAttackRange2 () const |
void | attack (Being *const target, const bool keep, const bool dontChangeEquipment) |
void | attack2 (Being *const target, const bool keep, const bool dontChangeEquipment) |
void | setGroupId (const int id) |
void | stopAttack (const bool keepAttack) |
void | untarget () |
Being * | getTarget () const |
void | setTarget (Being *const target) |
Being * | setNewTarget (const ActorTypeT type, const AllowSort allowSort) |
void | setDestination (const int x, const int y) |
void | setWalkingDir (const unsigned char dir) |
unsigned char | getWalkingDir () const |
void | setGotoTarget (Being *const target) |
bool | withinAttackRange (const Being *const target, const bool fixDistance, const int addRange) const |
void | stopWalking (const bool sendToServer) |
bool | toggleSit () const |
bool | updateSit () const |
void | pickedUp (const ItemInfo &itemInfo, const int amount, const ItemColor color, const BeingId floorItemId, const PickupT fail) |
int | getLevel () const |
void | pathSetByMouse () |
bool | isPathSetByMouse () const |
unsigned int | getMoveState () const |
void | setMoveState (const unsigned int n) |
std::string | getPingTime () const |
void | tryPingRequest () |
void | magicAttack () const |
void | specialMove (const unsigned char direction) |
void | moveByDirection (const unsigned char dir) |
bool | pickUpItems (int pickUpType) |
void | move (const int dX, const int dY) |
void | moveToTarget (int dist) |
void | moveToHome () |
bool | isReachable (Being *const being, const int maxCost) |
bool | isReachable (const int x, const int y, const bool allowCollision) const |
void | setHome () |
void | pingRequest () |
void | pingResponse () |
void | setAway (const std::string &message) const |
void | setHalfAway (const bool n) |
bool | getHalfAway () const |
void | afkRespond (ChatTab *const tab, const std::string &nick) |
bool | navigateTo (const int x, const int y) |
void | navigateClean () |
void | imitateEmote (const Being *const being, const unsigned char action) const |
void | imitateAction (const Being *const being, const BeingActionT &action) |
void | imitateDirection (const Being *const being, const unsigned char dir) |
void | imitateOutfit (const Being *const player, const int sprite) const |
void | followMoveTo (const Being *const being, const int x, const int y) |
void | followMoveTo (const Being *const being, const int x1, const int y1, const int x2, const int y2) |
bool | allowAction () |
void | setRealPos (const int x, const int y) |
bool | isServerBuggy () const |
void | fixPos () |
void | setTileCoords (const int x, const int y) |
void | setMap (Map *const map) |
void | addMessageToQueue (const std::string &message, const UserColorIdT color) |
void | optionChanged (const std::string &value) |
void | playerDeath () |
void | setFollow (const std::string &player) |
void | setImitate (const std::string &player) |
void | setNextDest (const int x, const int y) |
int | getNextDestX () const |
int | getNextDestY () const |
void | respawn () |
const FloorItem * | getPickUpTarget () const |
void | unSetPickUpTarget () |
void | cancelFollow () |
const std::string & | getFollow () const |
const std::string & | getImitate () const |
void | setCheckNameSetting (const bool checked) |
bool | getCheckNameSetting () const |
void | fixAttackTarget () |
void | updateNavigateList () |
int | getPathLength (const Being *const being) const |
void | targetMoved () const |
void | setLastHitFrom (const std::string &n) |
void | waitFor (const std::string &nick) |
void | checkNewName (Being *const being) |
unsigned char | getBlockWalkMask () const A_CONST |
void | saveHomes () |
void | removeHome () |
void | stopAdvert () |
void | addXpMessage (const int64_t change) |
void | addHomunXpMessage (const int change) |
void | addJobMessage (const int64_t change) |
void | addHpMessage (const int change) |
void | addSpMessage (const int change) |
void | updateStatus () const |
void | setTestParticle (const std::string &fileName, const bool updateHash) |
int | getLastAttackX () const |
int | getLastAttackY () const |
void | attributeChanged (const AttributesT id, const int64_t oldVal, const int64_t newVal) |
void | updateMusic () const |
void | setAfkTime (const int v) |
void | setAwayDialog (OkDialog *const dialog) |
AwayListener * | getAwayListener () const |
void | setRename (const bool r) |
bool | getRename () const |
bool | canMove () const |
void | freezeMoving (const int timeWaitTicks) |
void | failMove (const int x, const int y) |
Public Member Functions inherited from Being | |
Being (const BeingId id, const ActorTypeT type) | |
~Being () | |
ActorTypeT | getType () const |
void | clearPath () |
int | getActionTime () const |
void | setActionTime (const int actionTime) |
void | setDestination (const int dstX, const int dstY) |
void | setCachedDestination (const int dstX, const int dstY) |
int | getCachedX () const |
int | getCachedY () const |
const Vector & | getDestination () const |
int | getTileX () const |
int | getTileY () const |
void | setSpeech (const std::string &text) |
void | takeDamage (Being *const attacker, const int amount, const AttackTypeT type, const int attackId, const int level) |
void | handleAttack (Being *const victim, const int damage, const int attackId) |
void | handleSkillCasting (Being *const victim, const int skillId, const int skillLevel) |
void | handleSkill (Being *const victim, const int damage, const int skillId, const int skillLevel) |
const ItemInfo * | getEquippedWeapon () const |
const std::string & | getName () const |
const std::string & | getExtName () const |
void | setName (const std::string &name) |
bool | getShowName () const |
void | setShowName (const bool doShowName) |
void | setPartyName (const std::string &name) |
const std::string & | getPartyName () const |
const std::string & | getGuildName () const |
const std::string & | getClanName () const |
void | setGuildName (const std::string &name) |
void | setGuildPos (const std::string &pos) |
void | setClanName (const std::string &name) |
void | addGuild (Guild *const guild) |
void | removeGuild (const int id) |
const Guild * | getGuild (const std::string &guildName) const |
const Guild * | getGuild (const int id) const |
Guild * | getGuild () const |
const std::map< int, Guild * > & | getGuilds () const |
void | clearGuilds () |
int16_t | getNumberOfGuilds () const |
bool | isInParty () const |
void | setParty (Party *const party) |
void | setGuild (Guild *const guild) |
void | updateGuild () |
Party * | getParty () const |
void | setSprite (const unsigned int slot, const int id, std::string color, ItemColor colorId) |
void | setSpriteColor (const unsigned int slot, const int id, const std::string &color) |
void | setSpriteColorId (const unsigned int slot, const int id, ItemColor colorId) |
void | setSpriteCards (const unsigned int slot, const int id, const CardsList &cards) |
void | setSpriteId (const unsigned int slot, const int id) |
void | unSetSprite (const unsigned int slot) |
void | setWeaponId (const int id) |
void | setTempSprite (const unsigned int slot, const int id) |
void | setHairTempSprite (const unsigned int slot, const int id) |
void | updateSprite (const unsigned int slot, const int id, const std::string &color) |
void | setHairColorSpriteID (const unsigned int slot, const int id) |
void | setSpriteColor (const unsigned int slot, const std::string &color) |
int | getNumberOfLayers () const |
void | botLogic () |
void | drawSpeech (const int offsetX, const int offsetY) |
void | drawEmotion (Graphics *const graphics, const int offsetX, const int offsetY) const |
BeingTypeId | getSubType () const |
void | setSubtype (const BeingTypeId subtype, const uint16_t look) |
const BeingInfo * | getInfo () const |
TargetCursorSizeT | getTargetCursorSize () const |
int | getTargetOffsetX () const |
int | getTargetOffsetY () const |
BlockTypeT | getBlockType () const |
void | setWalkSpeed (const int speed) |
int | getWalkSpeed () const |
void | setAttackSpeed (const int speed) |
int | getAttackSpeed () const |
BeingActionT | getCurrentAction () const |
bool | isAlive () const |
uint8_t | getDirection () const |
virtual void | setDirection (const uint8_t direction) |
void | setDirectionDelayed (const uint8_t direction) |
uint8_t | getDirectionDelayed () const |
SpriteDirection::Type | getSpriteDirection () const |
void | setPixelPositionF (const Vector &pos) |
void | setPixelPositionF (const float x, const float y, const float z) A_INLINE |
int | getWidth () const |
int | getHeight () const |
void | fireMissile (Being *const victim, const MissileInfo &missile) const |
const Path & | getPath () const |
int | getDistance () const |
void | setDistance (const int n) |
void | setEmote (const uint8_t emotion, const int emote_time) |
void | setState (const uint8_t state) |
void | drawPlayerSprites (Graphics *const graphics, const int posX, const int posY) const |
void | drawSpritesSDL (Graphics *const graphics, const int posX, const int posY) const |
void | drawHpBar (Graphics *const graphics, const int maxHP, const int hp, const int damage, const UserColorIdT color1, const UserColorIdT color2, const int x, const int y, const int width, const int height) const |
void | flashName (const int time) |
int | getDamageTaken () const |
void | setDamageTaken (const int damage) |
void | updateName () |
void | setLevel (const int n) |
void | setReachable (const ReachableT n) |
ReachableT | getReachable () const |
void | addToCache () const |
bool | updateFromCache () |
virtual void | setGender (const GenderT gender) |
GenderT | getGender () const |
std::string | getSitAction () const |
std::string | getCastAction () const |
std::string | getCastAction (const SkillInfo *const skill) const |
std::string | getMoveAction () const |
std::string | getDeadAction () const |
std::string | getStandAction () const |
std::string | getSpawnAction () const |
std::string | getWeaponAttackAction (const ItemInfo *const weapon) const |
std::string | getAttackAction () const |
std::string | getAttackAction (const Attack *const attack1) const |
bool | isGM () const |
void | setGM (const bool gm) |
bool | canTalk () const |
void | talkTo () const |
void | draw (Graphics *const graphics, const int offsetX, const int offsetY) const |
void | drawPlayer (Graphics *const graphics, const int offsetX, const int offsetY) const |
void | drawOther (Graphics *const graphics, const int offsetX, const int offsetY) const |
void | drawNpc (Graphics *const graphics, const int offsetX, const int offsetY) const |
void | drawMonster (Graphics *const graphics, const int offsetX, const int offsetY) const |
void | drawPortal (Graphics *const graphics, const int offsetX, const int offsetY) const |
void | drawBasic (Graphics *const graphics, const int x, const int y) const |
void | setMoveTime () |
void | setAttackTime () |
void | setTalkTime () |
void | setTestTime () |
void | setOtherTime () |
time_t | getMoveTime () const |
time_t | getAttackTime () const |
time_t | getTalkTime () const |
time_t | getTestTime () const |
time_t | getOtherTime () const |
void | resetCounters () |
void | updateColors () |
void | setEnemy (const bool n) |
const std::string & | getIp () const |
void | setIp (const std::string &ip) |
unsigned int | getPvpRank () const |
void | setPvpRank (const unsigned int rank) |
void | setHP (const int hp) |
void | setMaxHP (const int hp) |
int | getHP () const |
int | getMaxHP () const |
uint8_t | calcDirection (const int dstX, const int dstY) const |
uint8_t | calcDirection () const |
void | setAttackDelay (const int n) |
int | getAttackDelay () const |
int | getMinHit () const |
void | setMinHit (const int n) |
int | getMaxHit () const |
void | setMaxHit (const int n) |
int | getCriticalHit () const |
void | setCriticalHit (const int n) |
void | updateHit (const int amount) |
Equipment * | getEquipment () |
void | undressItemById (const int id) |
int | getGoodStatus () const |
void | setGoodStatus (const int n) |
std::string | getGenderSign () const |
std::string | getGenderSignWithSpace () const |
void | updateComment () |
const std::string | getComment () const |
void | setComment (const std::string &n) |
bool | isAdvanced () const |
void | setAdvanced (const bool n) |
bool | isBuyShopEnabled () const |
bool | isSellShopEnabled () const |
void | enableShop (const bool b) |
void | setAttackRange (const int range) |
void | updatePercentHP () |
void | setRaceName (const std::string &name) |
std::string | getRaceName () const |
int | getSpriteID (const int slot) const |
const BeingSlot & | getSpriteSlot (const int slot) const |
ItemColor | getSpriteColor (const int slot) const |
void | setHairStyle (const unsigned int slot, const int id) |
void | setHairColor (const unsigned int slot, const ItemColor color) |
void | setHairColor (const ItemColor color) |
void | setSpriteSlot (const unsigned int slot, const BeingSlot &beingSlot) |
ItemColor | getHairColor () const |
void | recalcSpritesOrder () |
CursorT | getHoverCursor () const |
void | addAfkEffect () |
void | removeAfkEffect () |
void | updateAwayEffect () |
void | addSpecialEffect (const int effect) |
void | removeSpecialEffect () |
void | addEffect (const std::string &name) |
void | setOwner (Being *const owner) |
Being * | getOwner () const |
void | playSfx (const SoundInfo &sound, Being *const being, const bool main, const int x, const int y) const |
uint16_t | getLook () const |
void | setLook (const uint16_t look) |
void | setPath (const Path &path) |
int | getSortPixelY () const |
void | recreateItemParticles () |
void | incUsage () |
int | decUsage () |
void | drawHomunculus (Graphics *const graphics, const int offsetX, const int offsetY) const |
void | drawMercenary (Graphics *const graphics, const int offsetX, const int offsetY) const |
void | drawElemental (Graphics *const graphics, const int offsetX, const int offsetY) const |
void | setTrickDead (const bool b) |
void | setChat (ChatObject *const obj) |
ChatObject * | getChat () const |
void | setRiding (const bool b) |
void | setHorse (const int horseId) |
void | removeHorse () |
void | setSellBoard (const std::string &text) |
std::string | getSellBoard () const |
void | setBuyBoard (const std::string &text) |
std::string | getBuyBoard () const |
void | setSpiritBalls (const unsigned int balls) |
unsigned int | getSpiritBalls () const |
void | stopCast (const bool b) |
void | setCreatorId (const BeingId id) |
BeingId | getCreatorId () const |
void | setKarma (const int karma) |
int | getKarma () const |
void | setManner (const int manner) |
int | getManner () const |
void | disableBotAi () |
void | enableBotAi () |
int | getAreaSize () const |
void | setAreaSize (const int areaSize) |
void | setTeamId (const uint16_t teamId) |
void | showTeamBadge (const bool show) |
void | showGuildBadge (const bool show) |
void | showClanBadge (const bool show) |
void | showGmBadge (const bool show) |
void | showPartyBadge (const bool show) |
void | showNameBadge (const bool show) |
void | showShopBadge (const bool show) |
void | showInactiveBadge (const bool show) |
void | showAwayBadge (const bool show) |
void | showBadges (const bool show) |
void | setLanguageId (const int lang) |
int | getLanguageId () |
uint16_t | getTeamId () const |
int | getGroupId () const |
void | serverRemove () |
void | addCast (const int dstX, const int dstY, const int skillId, const int skillLevel, const int range, const int waitTimeTicks) |
void | fixDirectionOffsets (int &offsetX, int &offsetY) const |
bool | getAllowNpcEquipment () const |
Public Member Functions inherited from ActorSprite | |
ActorSprite (const BeingId id) | |
~ActorSprite () | |
BeingId | getId () const |
void | setId (const BeingId id) |
void | controlAutoParticle (Particle *const particle) |
void | controlCustomParticle (Particle *const particle) |
void | setTargetType (const TargetCursorTypeT type) |
void | untarget () |
void | setStatusEffect (const int32_t index, const Enable active, const IsStart start) |
void | setStatusEffectOpitons (const uint32_t option, const uint32_t opt1, const uint32_t opt2, const uint32_t opt3) |
void | setStatusEffectOpitons (const uint32_t option, const uint32_t opt1, const uint32_t opt2) |
void | setStatusEffectOpiton0 (const uint32_t option) |
void | setAlpha (const float alpha) |
float | getAlpha () const |
void | addActorSpriteListener (ActorSpriteListener *const listener) |
void | removeActorSpriteListener (ActorSpriteListener *const listener) |
int | getActorX () const |
int | getActorY () const |
void | setPoison (const bool b) |
bool | getPoison () const |
void | setHaveCart (const bool b) |
bool | getHaveCart () const |
bool | isTrickDead () const |
const std::set< int32_t > & | getStatusEffects () const |
std::string | getStatusEffectsString () const |
size_t | getParticlesCount () const |
void | controlParticleDeleted (const Particle *const particle) |
Public Member Functions inherited from CompoundSprite | |
CompoundSprite () | |
~CompoundSprite () | |
bool | reset () |
bool | play (const std::string &action) |
bool | update (const int time) |
void | drawSimple (Graphics *const graphics, const int posX, const int posY) const |
int | getWidth () const |
int | getHeight () const |
const Image * | getImage () const |
bool | setSpriteDirection (const SpriteDirection::Type direction) |
int | getNumberOfLayers () const |
unsigned int | getCurrentFrame () const |
unsigned int | getFrameCount () const |
void | addSprite (Sprite *const sprite) |
void | setSprite (const size_t layer, Sprite *const sprite) |
void | removeSprite (const int layer) |
void | clear () |
void | ensureSize (const size_t layerCount) |
void | drawSprites (Graphics *const graphics, const int posX, const int posY) const |
void | setAlpha (float alpha) |
bool | updateNumber (const unsigned num) |
int | getLastTime () const |
int | getStartTime () const |
Public Member Functions inherited from Sprite | |
virtual | ~Sprite () |
virtual const void * | getHash () const |
virtual const void * | getHash2 () const |
Public Member Functions inherited from Actor | |
virtual | ~Actor () |
const Vector & | getPixelPositionF () const |
int | getPixelX () const |
virtual int | getPixelY () const |
const Map * | getMap () const |
Public Member Functions inherited from ConfigListener | |
ConfigListener () | |
virtual | ~ConfigListener () |
Public Member Functions inherited from ActorSpriteListener | |
ActorSpriteListener () | |
virtual | ~ActorSpriteListener () |
Public Member Functions inherited from AttributeListener | |
AttributeListener () | |
virtual | ~ AttributeListener () |
Public Member Functions inherited from PlayerDeathListener | |
PlayerDeathListener () | |
virtual | ~ PlayerDeathListener () |
Static Public Member Functions | |
static bool | emote (const uint8_t emotion) |
static void | setPseudoAway (const std::string &message) |
static void | setAfkMessage (std::string message) |
static bool | checAttackPermissions (const Being *const target) |
Static Public Member Functions inherited from Being | |
static void | reReadConfig () |
static BeingCacheEntry * | getCacheEntry (const BeingId id) |
static void | clearCache () |
static std::string | loadComment (const std::string &name, const ActorTypeT &type) |
static void | saveComment (const std::string &name, const std::string &comment, const ActorTypeT &type) |
static int | getHitEffect (const Being *const attacker, const AttackTypeT type, const int attackId, const int level) |
static uint8_t | genderToInt (const GenderT sex) A_CONST |
static GenderT | intToGender (const uint8_t sex) A_CONST |
static Being * | createBeing (const BeingId id, const ActorTypeT type, const BeingTypeId subtype, Map *const map) |
Static Public Member Functions inherited from ActorSprite | |
static void | load () |
static void | unload () |
Static Public Member Functions inherited from CompoundSprite | |
static void | setEnableDelay (bool b) |
Static Public Member Functions inherited from AttributeListener | |
static void | distributeEvent (const AttributesT id, const int64_t oldVal, const int64_t newVal) |
static void | addListener (AttributeListener *const listener) |
static void | removeListener (const AttributeListener *const listener) |
Static Public Member Functions inherited from PlayerDeathListener | |
static void | distributeEvent () |
static void | addListener (PlayerDeathListener *const listener) |
static void | removeListener (const PlayerDeathListener *const listener) |
Protected Types | |
typedef std::pair< std::string, UserColorIdT > | MessagePair |
Protected Types inherited from Being | |
typedef std::map< int, ParticleInfo * > | SpriteParticleInfo |
typedef SpriteParticleInfo::iterator | SpriteParticleInfoIter |
Protected Types inherited from ActorSprite | |
typedef std::list< ActorSpriteListener * > | ActorSpriteListeners |
typedef ActorSpriteListeners::iterator | ActorSpriteListenerIterator |
Protected Types inherited from CompoundSprite | |
typedef std::list< CompoundItem * > | ImagesCache |
Protected Member Functions | |
void | updateCoords () |
void | handleStatusEffect (const StatusEffect *const effect, const int32_t effectId, const Enable newStatus, const IsStart start) |
void | startWalking (const unsigned char dir) |
void | changeEquipmentBeforeAttack (const Being *const target) const |
void | loadHomes () |
Protected Member Functions inherited from Being | |
void | drawPlayerSpriteAt (Graphics *const graphics, const int x, const int y) const |
void | drawOtherSpriteAt (Graphics *const graphics, const int x, const int y) const |
void | drawNpcSpriteAt (Graphics *const graphics, const int x, const int y) const |
void | drawPortalSpriteAt (Graphics *const graphics, const int x, const int y) const |
void | drawMonsterSpriteAt (Graphics *const graphics, const int x, const int y) const |
void | drawHomunculusSpriteAt (Graphics *const graphics, const int x, const int y) const |
void | drawMercenarySpriteAt (Graphics *const graphics, const int x, const int y) const |
void | drawElementalSpriteAt (Graphics *const graphics, const int x, const int y) const |
void | drawCompound (Graphics *const graphics, const int posX, const int posY) const |
void | showName () |
void | addItemParticles (const int id, const SpriteDisplay &display) |
void | addItemParticlesCards (const int id, const SpriteDisplay &display, const CardsList &cards) |
void | removeAllItemsParticles () |
void | removeItemParticles (const int id) |
void | createSpeechBubble () |
void | setDefaultNameColor (const UserColorIdT defaultColor) |
void | updateBadgesCount () |
void | postInit (const BeingTypeId subType, Map *const map) |
void | updateBadgesPosition () |
template<signed char pos, signed char neg> | |
int | getOffset () const |
int | searchSlotValue (const std::vector< int > &slotRemap, const int val) const |
void | addSpiritBalls (const unsigned int balls, const int effectId) |
void | removeSpiritBalls (const unsigned int balls) |
void | dumpSprites () const |
void | drawBeingCursor (Graphics *const graphics, const int offsetX, const int offsetY) const |
void | drawCasting (Graphics *const graphics, const int offsetX, const int offsetY) const |
void | updateBotFollow (int dstX, int dstY, const int divX, const int divY) |
void | moveBotTo (int dstX, int dstY) |
void | updateBotDirection (const int dstX, const int dstY) |
void | botFixOffset (int &dstX, int &dstY) const |
Protected Member Functions inherited from ActorSprite | |
virtual void | updateStatusEffect (const int32_t index, const Enable newStatus, const IsStart start) |
void | setupSpriteDisplay (const SpriteDisplay &display, const ForceDisplay forceDisplay, const DisplayTypeT displayType, const std::string &color) |
Protected Member Functions inherited from CompoundSprite | |
void | redraw () const |
void | updateImages () const |
bool | updateFromCache () const |
void | initCurrentCacheItem () const |
Protected Member Functions inherited from Sprite | |
Sprite () | |
Protected Member Functions inherited from Actor | |
Actor () | |
Static Protected Member Functions | |
static void | tryMagic (const std::string &spell, const int baseMagic, const int schoolMagic, const int mana) |
Static Protected Member Functions inherited from Being | |
static int | getDefaultEffectId (const AttackTypeT &type) |
static void | searchSlotValueItr (std::vector< int >::iterator &it, int &idx, std::vector< int > &slotRemap, const int val) |
Static Protected Member Functions inherited from ActorSprite | |
static void | initTargetCursor () |
static void | cleanupTargetCursors () |
Additional Inherited Members | |
Public Types inherited from CompoundSprite | |
typedef std::vector< Sprite * >::iterator | SpriteIterator |
typedef std::vector< Sprite * >::const_iterator | SpriteConstIterator |
Data Fields inherited from Being | |
NextSoundInfo | mNextSound |
Data Fields inherited from CompoundSprite | |
std::vector< Sprite * > | mSprites |
Data Fields inherited from Actor | |
int | mPixelX |
int | mPixelY |
Static Protected Attributes inherited from Being | |
static time_t | mUpdateConfigTime = 0 |
static unsigned int | mConfLineLim = 0 |
static int | mSpeechType = 0 |
static bool | mHighlightMapPortals = false |
static bool | mHighlightMonsterAttackRange = false |
static bool | mLowTraffic = true |
static bool | mDrawHotKeys = true |
static bool | mShowBattleEvents = false |
static bool | mShowMobHP = false |
static bool | mShowOwnHP = false |
static bool | mShowGender = false |
static bool | mShowLevel = false |
static bool | mShowPlayersStatus = false |
static bool | mEnableReorderSprites = true |
static bool | mHideErased = false |
static Move | mMoveNames = Move_false |
static bool | mUseDiagonal = true |
static BadgeDrawType::Type | mShowBadges = BadgeDrawType::Top |
static int | mAwayEffect = -1 |
static VisibleNamePos::Type | mVisibleNamePos = VisibleNamePos::Bottom |
Static Protected Attributes inherited from ActorSprite | |
static AnimatedSprite * | targetCursor [static_cast< size_t >(TargetCursorType::NUM_TCT)][static_cast< size_t >(TargetCursorSize::NUM_TC)] |
static bool | loaded = false |
Static Protected Attributes inherited from CompoundSprite | |
static bool | mEnableDelay = true |
The local player character.
Definition at line 50 of file localplayer.h.
|
protected |
Definition at line 478 of file localplayer.h.
LocalPlayer::LocalPlayer | ( | const BeingId | id, |
const BeingTypeId | subType | ||
) |
Constructor.
Definition at line 114 of file localplayer.cpp.
References Configuration::addListener(), config, Configuration::getBoolValue(), Theme::getColor(), UserPalette::getColor(), Configuration::getIntValue(), Net::getNetworkType(), Being::getWalkSpeed(), loadHomes(), Logger::log1(), logger, Being::mAdvanced, Being::mAttackRange, Being::mLevel, Being::mNameColor, mSyncPlayerMoveDistance, Being::mTextColor, Notify_true, Attributes::PLAYER_WALK_SPEED, Being::postInit(), UserColorId::SELF, serverConfig, Being::setShowName(), PlayerInfo::setStatBase(), PlayerInfo::setStatMod(), theme, ServerType::TMWATHENA, and userPalette.
LocalPlayer::~LocalPlayer | ( | ) |
Destructor.
Definition at line 235 of file localplayer.cpp.
References config, delete2, Logger::log1(), logger, mAwayDialog, mAwayListener, mCrossX, mCrossY, navigateClean(), Configuration::removeListener(), Configuration::removeListeners(), serverConfig, soundManager, updateNavigateList(), and SoundManager::volumeRestore().
|
virtual |
Called when an ActorSprite has been destroyed.
actorSprite | the ActorSprite being destroyed. |
Implements ActorSpriteListener.
Definition at line 556 of file localplayer.cpp.
References mPickUpTarget.
void LocalPlayer::addHomunXpMessage | ( | const int | change | ) |
Definition at line 1256 of file localplayer.cpp.
References _, addMessageToQueue(), UserColorId::EXP_INFO, mMessages, and strprintf().
Referenced by EAthena::HomunculusRecv::processHomunculusExp().
void LocalPlayer::addHpMessage | ( | const int | change | ) |
Definition at line 1270 of file localplayer.cpp.
References _, addMessageToQueue(), UserColorId::EXP_INFO, mMessages, and strprintf().
Referenced by EAthena::PlayerRecv::processPlayerHeal().
void LocalPlayer::addJobMessage | ( | const int64_t | change | ) |
Definition at line 1204 of file localplayer.cpp.
References _, addMessageToQueue(), CAST_U64, UserColorId::EXP_INFO, mMessages, strprintf(), and Catch::toString().
Referenced by attributeChanged(), EAthena::PlayerRecv::processPlayerGetExp(), and EAthena::PlayerRecv::processPlayerGetExp2().
void LocalPlayer::addMessageToQueue | ( | const std::string & | message, |
const UserColorIdT | color | ||
) |
Definition at line 1116 of file localplayer.cpp.
References mMessages.
Referenced by addHomunXpMessage(), addHpMessage(), addJobMessage(), addSpMessage(), addXpMessage(), and pickedUp().
void LocalPlayer::addSpMessage | ( | const int | change | ) |
Definition at line 1280 of file localplayer.cpp.
References _, addMessageToQueue(), UserColorId::EXP_INFO, mMessages, and strprintf().
Referenced by EAthena::PlayerRecv::processPlayerHeal().
void LocalPlayer::addXpMessage | ( | const int64_t | change | ) |
Definition at line 1244 of file localplayer.cpp.
References _, addMessageToQueue(), CAST_U64, UserColorId::EXP_INFO, mMessages, strprintf(), and Catch::toString().
Referenced by attributeChanged(), EAthena::PlayerRecv::processPlayerGetExp(), and EAthena::PlayerRecv::processPlayerGetExp2().
void LocalPlayer::afkRespond | ( | ChatTab *const | tab, |
const std::string & | nick | ||
) |
Definition at line 2082 of file localplayer.cpp.
References ChatMsgType::ACT_WHISPER, awayLimitTimer, Settings::awayMode, chatHandler, ChatTab::chatLog(), config, cur_time, Configuration::getIntValue(), ChatTab::getNoAway(), ConfigurationObject::getValue(), IgnoreRecord_false, localChatTab, mAfkTime, Being::mName, Actions::msg(), Net::ChatHandler::privateMessage(), replaceAll(), serverConfig, settings, and TryRemoveColors_true.
Referenced by ChatWindow::addWhisper().
bool LocalPlayer::allowAction | ( | ) |
Definition at line 2601 of file localplayer.cpp.
References mIsServerBuggy, mLastAction, and tick_time.
Referenced by CrazyMoves::crazyMove9().
void LocalPlayer::attack | ( | Being *const | target, |
const bool | keep, | ||
const bool | dontChangeEquipment | ||
) |
Definition at line 800 of file localplayer.cpp.
References BeingAction::ATTACK, Net::PlayerHandler::attack(), BeingAction::CAST, changeEquipmentBeforeAttack(), checAttackPermissions(), BeingDirection::DOWN, ActorSprite::getId(), Net::getNetworkType(), Being::getType(), BeingDirection::LEFT, PacketLimiter::limitPackets(), Being::mAction, Being::mActionTime, mKeepAttacking, mServerAttack, mTarget, Being::mX, Being::mY, ActorType::Npc, PacketType::PACKET_ATTACK, ActorType::Player, playerHandler, BeingDirection::RIGHT, setAction(), Being::setDirection(), setTarget(), BeingAction::SIT, BeingAction::STAND, stopAttack(), tick_time, ServerType::TMWATHENA, BeingDirection::UP, and PlayerInfo::updateAttackAi().
Referenced by attack2(), logic(), and nextTile().
void LocalPlayer::attack2 | ( | Being *const | target, |
const bool | keep, | ||
const bool | dontChangeEquipment | ||
) |
Definition at line 2327 of file localplayer.cpp.
References attack(), Settings::attackType, changeEquipmentBeforeAttack(), getAttackRange2(), Net::getNetworkType(), getPathLength(), Being::getType(), mKeepAttacking, moveToTarget(), mPickUpTarget, ActorType::Npc, pickUpItems(), setTarget(), settings, ServerType::TMWATHENA, and withinAttackRange().
|
virtual |
Implements AttributeListener.
Definition at line 1290 of file localplayer.cpp.
References addJobMessage(), addXpMessage(), CAST_S32, PlayerDeathListener::distributeEvent(), PlayerInfo::getAttribute(), Net::getNetworkType(), Being::mLevel, mShowJobExp, Attributes::PLAYER_BASE_LEVEL, Attributes::PLAYER_EXP, Attributes::PLAYER_HP, Attributes::PLAYER_JOB_EXP, Attributes::PLAYER_JOB_EXP_NEEDED, PRAGMA45(), and ServerType::TMWATHENA.
void LocalPlayer::cancelFollow | ( | ) |
Stop following a player.
Definition at line 2405 of file localplayer.cpp.
References _, debugMsg, mPlayerFollowed, and mPlayerImitated.
Referenced by GameModifiers::changeAwayMode(), and Game::handleMove().
bool LocalPlayer::canMove | ( | ) | const |
Definition at line 2919 of file localplayer.cpp.
References BeingAction::DEAD, Net::ServerFeatures::haveMoveWhileSit(), Being::mAction, mFreezed, serverFeatures, and BeingAction::SIT.
Referenced by Game::handleMove().
|
protected |
Definition at line 1462 of file localplayer.cpp.
References Settings::attackWeaponType, PlayerInfo::equipItem(), Equipped_false, Inventory::findItem(), FOR_EACH, WeaponsDB::getBows(), PlayerInfo::getInventory(), WeaponsDB::getShields(), WeaponsDB::getSwords(), Item::isEquipped(), ItemColor_zero, Being::mX, Being::mY, settings, and Sfx_true.
|
static |
Definition at line 2847 of file localplayer.cpp.
References PlayerRelationsManager::checkBadRelation(), Relation::FRIEND, PlayerRelationsManager::getRelation(), Being::mName, playerRelations, Settings::pvpAttackType, and settings.
Referenced by attack(), and ActorManager::findNearestPvpPlayer().
void LocalPlayer::checkNewName | ( | Being *const | being | ) |
Definition at line 2782 of file localplayer.cpp.
References _, chatWindow, debugMsg, Being::getGuild(), Being::getLevel(), Being::getType(), ChatWindow::getWhisperTab(), Actions::gm(), guild, Being::mName, mWaitFor, ActorType::Player, SoundManager::playGuiSound(), Being::setLevel(), WhisperTab::setWhisperTabColors(), SOUND_INFO, soundManager, strprintf(), and Being::updateName().
Referenced by ActorManager::createBeing(), EAthena::BeingRecv::processBeingMove(), TmwAthena::BeingRecv::processBeingMove(), EAthena::BeingRecv::processBeingSpawn(), EAthena::BeingRecv::processBeingVisible(), TmwAthena::BeingRecv::processBeingVisible(), Ea::BeingRecv::processNameResponse(), EAthena::BeingRecv::processNameResponse2(), and EAthena::BeingRecv::processNameResponseTitle().
|
static |
Definition at line 791 of file localplayer.cpp.
References Net::PlayerHandler::emote(), PacketLimiter::limitPackets(), PacketType::PACKET_EMOTE, and playerHandler.
Referenced by CrazyMoves::crazyMoveAe(), imitateEmote(), slowLogic(), EmoteShortcut::useEmote(), and EmoteShortcut::useEmotePlayer().
void LocalPlayer::failMove | ( | const int | x, |
const int | y | ||
) |
Definition at line 2771 of file localplayer.cpp.
References fixPos().
Referenced by EAthena::PlayerRecv::processWalkError().
void LocalPlayer::fixAttackTarget | ( | ) |
Definition at line 2716 of file localplayer.cpp.
References Settings::attackType, config, Map::findPath(), getBlockWalkMask(), Configuration::getBoolValue(), mapTileSize, Actor::mMap, Settings::moveToTargetType, Actor::mPixelX, Actor::mPixelY, mTarget, Being::mX, Being::mY, setDestination(), and settings.
Referenced by Ea::BeingRecv::processPlayerMoveToAttack().
void LocalPlayer::fixPos | ( | ) |
Definition at line 2612 of file localplayer.cpp.
References cur_time, Logger::dlog(), Net::getNetworkType(), logger, mActivityTime, mCrossX, mCrossY, mSyncPlayerMove, mSyncPlayerMoveDistance, Being::mX, Being::mY, setTileCoords(), strprintf(), and ServerType::TMWATHENA.
Referenced by failMove(), nextTile(), setRealPos(), and updateCoords().
void LocalPlayer::followMoveTo | ( | const Being *const | being, |
const int | x, | ||
const int | y | ||
) |
Definition at line 2532 of file localplayer.cpp.
References Being::mName, mPickUpTarget, mPlayerFollowed, navigateTo(), x, and y.
Referenced by EAthena::BeingRecv::processBeingMove(), EAthena::BeingRecv::processBeingMove2(), Ea::BeingRecv::processBeingRemove(), and TmwAthena::BeingRecv::processPlayerMove().
void LocalPlayer::followMoveTo | ( | const Being *const | being, |
const int | x1, | ||
const int | y1, | ||
const int | x2, | ||
const int | y2 | ||
) |
Definition at line 2544 of file localplayer.cpp.
References actorManager, ActorManager::findBeingByName(), Settings::followMode, Being::mName, moveToTarget(), mPickUpTarget, mPlayerFollowed, mTarget, Being::mX, Being::mY, navigateTo(), ActorType::Player, setNextDest(), setTarget(), and settings.
void LocalPlayer::freezeMoving | ( | const int | timeWaitTicks | ) |
Definition at line 2927 of file localplayer.cpp.
References mFreezed, mUnfreezeTime, and tick_time.
Referenced by EAthena::BeingRecv::processSkillCastingContinue().
int LocalPlayer::getAttackRange | ( | ) | const |
Gets the attack range.
Definition at line 1005 of file localplayer.cpp.
References EquipSlot::FIGHT1_SLOT, PlayerInfo::getEquipment(), Item::getInfo(), Actions::info(), and Being::mAttackRange.
Referenced by MapLayer::drawFringe(), ActorManager::findNearestLivingBeing(), getAttackRange2(), logic(), and withinAttackRange().
int LocalPlayer::getAttackRange2 | ( | ) | const |
Definition at line 2319 of file localplayer.cpp.
References getAttackRange().
Referenced by attack2().
|
inline |
Definition at line 419 of file localplayer.h.
References mAwayListener.
Referenced by GameModifiers::changeAwayMode().
|
virtual |
Gets the way the object is blocked by other objects.
Reimplemented from Being.
Definition at line 2821 of file localplayer.cpp.
References BlockMask::AIR, BlockMask::PLAYERWALL, BlockMask::WALL, and BlockMask::WATER.
Referenced by CrazyMoves::crazyMove8(), fixAttackTarget(), getPathLength(), isReachable(), moveToTarget(), navigateTo(), pickUp(), and startWalking().
|
inline |
Gets if the engine has to check if the Player Name is to be displayed.
Definition at line 356 of file localplayer.h.
References mUpdateName.
|
inline |
Get the playername followed by the current player.
Definition at line 336 of file localplayer.h.
References mPlayerFollowed.
Referenced by InputManager::updateConditionMask().
|
inline |
Definition at line 239 of file localplayer.h.
References Being::mInactive.
Referenced by Game::adjustPerfomance().
|
inline |
Get the playername imitated by the current player.
Definition at line 342 of file localplayer.h.
References mPlayerImitated.
Referenced by imitateEmote().
|
inlinevirtual |
Reimplemented from Being.
Definition at line 401 of file localplayer.h.
References Being::mLastAttackX, mTarget, and Being::mX.
|
inlinevirtual |
Reimplemented from Being.
Definition at line 404 of file localplayer.h.
References Being::mLastAttackY, mTarget, and Being::mY.
|
virtual |
Reimplemented from Being.
Definition at line 2747 of file localplayer.cpp.
References PlayerInfo::getAttribute(), and Attributes::PLAYER_BASE_LEVEL.
Referenced by KillStats::gainXp(), and KillStats::KillStats().
|
inline |
|
inline |
Definition at line 314 of file localplayer.h.
References mNextDestX.
Referenced by Ea::BeingRecv::processBeingRemove().
|
inline |
Definition at line 317 of file localplayer.h.
References mNextDestY.
Referenced by Ea::BeingRecv::processBeingRemove().
Position LocalPlayer::getNextWalkPosition | ( | const unsigned char | dir | ) | const |
Compute the next pathnode location when walking using keyboard. used by nextTile().
int LocalPlayer::getPathLength | ( | const Being *const | being | ) | const |
Definition at line 2284 of file localplayer.cpp.
References CAST_S32, Map::findPath(), getBlockWalkMask(), mapTileSize, Actor::mMap, Actor::mPixelX, Actor::mPixelY, mTargetOnlyReachable, Being::mX, and Being::mY.
Referenced by attack2().
|
inline |
Definition at line 322 of file localplayer.h.
References mPickUpTarget.
Referenced by ActorManager::logic().
std::string LocalPlayer::getPingTime | ( | ) | const |
Definition at line 1997 of file localplayer.cpp.
References CAST_S32, MAX_TICK_VALUE, mPingSendTick, mPingTime, mWaitPing, strprintf(), tick_time, and Catch::toString().
Referenced by NetDebugTab::logic().
|
inline |
Definition at line 425 of file localplayer.h.
References mAllowRename.
Referenced by CharSelectDialog::updateState().
Being * LocalPlayer::getTarget | ( | ) | const |
Returns the current target of the player. Returns 0 if no being is currently targeted.
Definition at line 562 of file localplayer.cpp.
References mTarget.
Referenced by Being::botLogic(), DebugWindow::draw(), Being::drawMonsterSpriteAt(), Actions::findBeing(), ActorManager::findNearestLivingBeing(), ActorManager::healTarget(), SpellManager::invoke(), ActorManager::logic(), TargetDebugTab::logic(), Ea::BeingRecv::processBeingRemove(), EAthena::BeingRecv::processBeingResurrect(), TmwAthena::BeingRecv::processBeingResurrect(), replaceVars(), DebugWindow::safeDraw(), Being::showName(), SkillDialog::useSkill(), SkillDialog::useSkillDefault(), and ActorSprite::~ActorSprite().
|
inline |
|
protectedvirtual |
Handle an update to a status or stun effect
The | StatusEffect to effect |
effectId | -1 for stun, otherwise the effect index |
Reimplemented from ActorSprite.
Definition at line 1053 of file localplayer.cpp.
References CAST_S32, StatusEffect::deliverMessage(), MiniStatusWindow::eraseIcon(), StatusEffect::getIcon(), ActorSprite::handleStatusEffect(), miniStatusWindow, mStatusEffectIcons, StatusEffect::playSFX(), MiniStatusWindow::setIcon(), and anonymous_namespace{stringutils.cpp}::start.
void LocalPlayer::imitateAction | ( | const Being *const | being, |
const BeingActionT & | action | ||
) |
Definition at line 2432 of file localplayer.cpp.
References Net::PlayerHandler::changeAction(), Being::mName, mPlayerImitated, playerHandler, and setAction().
Referenced by EAthena::BeingRecv::applyPlayerAction(), TmwAthena::BeingRecv::applyPlayerAction(), Ea::BeingRecv::processBeingAction(), EAthena::BeingRecv::processBeingAction2(), and TmwAthena::BeingRecv::processPlayerMove().
void LocalPlayer::imitateDirection | ( | const Being *const | being, |
const unsigned char | dir | ||
) |
Definition at line 2445 of file localplayer.cpp.
References BeingDirection::DOWN, Settings::followMode, BeingDirection::LEFT, PacketLimiter::limitPackets(), Being::mName, mPlayerImitated, PacketType::PACKET_DIRECTION, playerHandler, BeingDirection::RIGHT, Being::setDirection(), Net::PlayerHandler::setDirection(), settings, and BeingDirection::UP.
Referenced by EAthena::BeingRecv::processBeingChangeDirection(), TmwAthena::BeingRecv::processBeingChangeDirection(), TmwAthena::BeingRecv::processPlayerMove(), TmwAthena::BeingRecv::processPlayerUpdate1(), and TmwAthena::BeingRecv::processPlayerUpdate2().
void LocalPlayer::imitateEmote | ( | const Being *const | being, |
const unsigned char | action | ||
) | const |
Definition at line 2421 of file localplayer.cpp.
References emote(), getImitate(), and Being::mName.
Referenced by Ea::BeingRecv::processBeingEmotion().
void LocalPlayer::imitateOutfit | ( | const Being *const | player, |
const int | sprite | ||
) | const |
Definition at line 2479 of file localplayer.cpp.
References Net::InventoryHandler::convertFromServerSlot(), PlayerInfo::equipItem(), Equipped_false, Inventory::findItemBySprite(), PlayerInfo::getEquipment(), Being::getGender(), AnimatedSprite::getIdPath(), PlayerInfo::getInventory(), Being::getNumberOfLayers(), Net::InventoryHandler::getProjectileSlot(), Being::getSubType(), Settings::imitationMode, inventoryHandler, Item::isEquipped(), Being::mName, mPlayerImitated, CompoundSprite::mSprites, settings, Sfx_false, and PlayerInfo::unequipItem().
Referenced by TmwAthena::BeingRecv::processBeingChangeLookContinue(), EAthena::BeingRecv::processBeingChangeLookContinue(), TmwAthena::BeingRecv::processPlayerMove(), TmwAthena::BeingRecv::processPlayerUpdate1(), and TmwAthena::BeingRecv::processPlayerUpdate2().
|
inline |
Tells if the path has been set by mouse.
Definition at line 190 of file localplayer.h.
References mPathSetByMouse.
bool LocalPlayer::isReachable | ( | Being *const | being, |
const int | maxCost | ||
) |
Definition at line 1542 of file localplayer.cpp.
References CAST_S32, Map::findPath(), getBlockWalkMask(), Being::getReachable(), mapTileSize, Actor::mMap, Actor::mPixelX, Actor::mPixelY, Being::mX, Being::mY, Reachable::REACH_NO, Reachable::REACH_YES, Being::setDistance(), and Being::setReachable().
Referenced by SocialNavigationTab::addPortal(), ActorManager::pickUpNearest(), SocialNavigationTab::updateList(), and ActorManager::validateBeing().
bool LocalPlayer::isReachable | ( | const int | x, |
const int | y, | ||
const bool | allowCollision | ||
) | const |
Definition at line 1586 of file localplayer.cpp.
References WalkLayer::getDataAt(), Map::getWalkLayer(), Actor::mMap, Being::mX, Being::mY, x, and y.
|
inline |
Definition at line 276 of file localplayer.h.
References mIsServerBuggy.
Referenced by DropShortcut::dropFirst(), and DropShortcut::dropItems().
|
protected |
Definition at line 1815 of file localplayer.cpp.
References ConfigurationObject::getValue(), mHomes, serverConfig, Vector::x, and Vector::y.
Referenced by LocalPlayer().
|
virtual |
Performs being logic.
Reimplemented from Being.
Definition at line 256 of file localplayer.cpp.
References ParticleEngine::addTextRiseFadeOutEffect(), attack(), BLOCK_END, BLOCK_START, CAST_S32, cur_time, get_elapsed_time(), getAttackRange(), UserPalette::getColor(), Gui::getInfoParticleFont(), Being::getType(), gui, TargetCursorType::IN_RANGE, Actions::info(), Being::isAlive(), Being::logic(), Being::mAction, mActivityTime, mCrossX, mCrossY, Being::mDirection, mFreezed, mKeepAttacking, mLastAction, mMessages, mMessageTime, mNavigatePath, mNavigateX, mNavigateY, mNextStep, BeingAction::MOVE, Actor::mPixelX, Actor::mPixelY, mSyncPlayerMove, mTarget, mTargetDeadPlayers, mUnfreezeTime, Being::mX, Being::mY, TargetCursorType::NORMAL, ActorType::Npc, particleEngine, ActorType::Player, setDestination(), ActorSprite::setTargetType(), stopAttack(), tick_time, and userPalette.
void LocalPlayer::magicAttack | ( | ) | const |
Definition at line 1757 of file localplayer.cpp.
References Net::PlayerHandler::canUseMagic(), chatWindow, Net::getNetworkType(), Being::isAlive(), Settings::magicAttackType, playerHandler, settings, ServerType::TMWATHENA, and tryMagic().
void LocalPlayer::move | ( | const int | dX, |
const int | dY | ||
) |
Definition at line 1339 of file localplayer.cpp.
References mPickUpTarget, Being::mX, Being::mY, and setDestination().
Referenced by CrazyMoves::crazyMove3(), CrazyMoves::crazyMove4(), CrazyMoves::crazyMove5(), CrazyMoves::crazyMove6(), CrazyMoves::crazyMove7(), CrazyMoves::crazyMove8(), CrazyMoves::crazyMove9(), CrazyMoves::crazyMoveAm(), and moveByDirection().
void LocalPlayer::moveByDirection | ( | const unsigned char | dir | ) |
Definition at line 1704 of file localplayer.cpp.
References BeingDirection::DOWN, BeingDirection::LEFT, move(), BeingDirection::RIGHT, and BeingDirection::UP.
Referenced by specialMove().
void LocalPlayer::moveToHome | ( | ) |
Definition at line 1432 of file localplayer.cpp.
References CAST_S32, Properties::getProperty(), mCrossX, mCrossY, Being::mDirection, mHomes, Actor::mMap, mPickUpTarget, Being::mX, Being::mY, navigateTo(), playerHandler, setDestination(), Net::PlayerHandler::setDestination(), Vector::x, and Vector::y.
void LocalPlayer::moveToTarget | ( | int | dist | ) |
Definition at line 1345 of file localplayer.cpp.
References CAST_S32, CAST_SIZE, Map::findPath(), getBlockWalkMask(), Net::getNetworkType(), mapTileSize, Being::mAttackRange, mLastTargetX, mLastTargetY, Actor::mMap, mNavigatePath, mNavigateX, mNavigateY, Settings::moveToTargetType, Actor::mPixelX, Actor::mPixelY, mTarget, Being::mX, Being::mY, navigateTo(), settings, ServerType::TMWATHENA, Position::x, and Position::y.
Referenced by attack2(), and followMoveTo().
void LocalPlayer::navigateClean | ( | ) |
Definition at line 2155 of file localplayer.cpp.
References BeingId_zero, SpecialLayer::clean(), Map::getTempLayer(), Actor::mMap, mNavigateId, mNavigatePath, mNavigateX, mNavigateY, mOldTileX, mOldTileY, mOldX, mOldY, and mShowNavigePath.
Referenced by GameModifiers::changeAwayMode(), EAthena::BeingRecv::processBeingSlide(), Ea::PlayerRecv::processPlayerWarp(), respawn(), setMap(), specialMove(), stopWalking(), updateCoords(), and ~LocalPlayer().
bool LocalPlayer::navigateTo | ( | const int | x, |
const int | y | ||
) |
Definition at line 2124 of file localplayer.cpp.
References SpecialLayer::addRoad(), BeingId_zero, Map::findPath(), getBlockWalkMask(), Map::getTempLayer(), mapTileSize, mDrawPath, Actor::mMap, mNavigateId, mNavigatePath, mNavigateX, mNavigateY, mOldTileX, mOldTileY, mOldX, mOldY, Actor::mPixelX, Actor::mPixelY, mShowNavigePath, Being::mX, Being::mY, x, and y.
Referenced by followMoveTo(), AvatarListBox::mousePressed(), Minimap::mouseReleased(), moveToHome(), moveToTarget(), pickUp(), SocialNavigationTab::selectIndex(), and setGotoTarget().
|
virtual |
Adds a new tile to the path when walking.
Reimplemented from Being.
Definition at line 449 of file localplayer.cpp.
References attack(), fixPos(), Party::getParty(), Being::mAction, mGoingToTarget, Being::mName, mNavigatePath, mNextStep, BeingAction::MOVE, Being::mPath, mPickUpTarget, mTarget, mWalkingDir, Being::mX, Being::mY, Being::nextTile(), party, pickUp(), setAction(), Avatar::setX(), Avatar::setY(), BeingAction::STAND, startWalking(), and withinAttackRange().
|
virtual |
Called when a option (set with config.addListener()) is changed
Reimplemented from Being.
Definition at line 1123 of file localplayer.cpp.
References config, fromBool, Configuration::getBoolValue(), Configuration::getIntValue(), Net::getNetworkType(), mAttackMoving, mAttackNext, mDrawPath, mEnableAdvert, mIsServerBuggy, mServerAttack, mShowJobExp, mShowServerPos, mSyncPlayerMove, mSyncPlayerMoveDistance, mTargetDeadPlayers, mTargetOnlyReachable, mTradebot, mVisibleNames, serverConfig, Being::setShowName(), and ServerType::TMWATHENA.
|
inline |
Tells that the path has been set by mouse.
Definition at line 186 of file localplayer.h.
References mPathSetByMouse.
void LocalPlayer::pickedUp | ( | const ItemInfo & | itemInfo, |
const int | amount, | ||
const ItemColor | color, | ||
const BeingId | floorItemId, | ||
const PickupT | fail | ||
) |
Shows item pickup notifications.
Definition at line 887 of file localplayer.cpp.
References actorManager, addMessageToQueue(), Pickup::BAD_ITEM, BeingId_zero, ChatMsgType::BY_SERVER, ChatTab::chatLog(), config, Pickup::DROP_STEAL, ActorManager::findItem(), Configuration::getBoolValue(), Net::getNetworkType(), FloorItem::getShowMsg(), IgnoreRecord_false, Pickup::INV_FULL, Actions::itemInfo(), localChatTab, Pickup::MAX_AMOUNT, Actor::mMap, Actions::msg(), N_, Pickup::OKAY, UserColorId::PICKUP_INFO, FloorItem::setShowMsg(), Pickup::STACK_AMOUNT, Pickup::STACK_FULL, strprintf(), ServerType::TMWATHENA, Pickup::TOO_FAR, Pickup::TOO_HEAVY, TryRemoveColors_true, and Pickup::UNKNOWN.
Referenced by EAthena::InventoryRecv::processPlayerInventoryAdd(), and TmwAthena::InventoryRecv::processPlayerInventoryAdd().
bool LocalPlayer::pickUp | ( | FloorItem *const | item | ) |
Definition at line 512 of file localplayer.cpp.
References actorManager, ActorSprite::addActorSpriteListener(), ActorManager::checkForPickup(), Map::findPath(), getBlockWalkMask(), FloorItem::getTileX(), FloorItem::getTileY(), PacketLimiter::limitPackets(), mapTileSize, Actor::mMap, mPickUpTarget, Actor::mPixelX, Actor::mPixelY, Being::mX, Being::mY, navigateTo(), PacketType::PACKET_PICKUP, PlayerInfo::pickUpItem(), Settings::pickUpType, setDestination(), settings, and Sfx_true.
Referenced by nextTile(), ActorManager::pickUpAll(), pickUpItems(), and ActorManager::pickUpNearest().
bool LocalPlayer::pickUpItems | ( | int | pickUpType | ) |
Definition at line 1599 of file localplayer.cpp.
References actorManager, BeingDirection::DOWN, ActorManager::findItem(), BeingDirection::LEFT, Being::mDirection, Being::mX, Being::mY, pickUp(), ActorManager::pickUpAll(), ActorManager::pickUpNearest(), Settings::pickUpType, BeingDirection::RIGHT, settings, BeingDirection::UP, x, and y.
Referenced by attack2(), and CrazyMoves::crazyMoveA().
void LocalPlayer::pingRequest | ( | ) |
Definition at line 1983 of file localplayer.cpp.
References beingHandler, ActorSprite::getId(), mPingSendTick, mWaitPing, Net::BeingHandler::requestNameById(), and tick_time.
Referenced by tryPingRequest().
void LocalPlayer::pingResponse | ( | ) |
Definition at line 2024 of file localplayer.cpp.
References mPingSendTick, mPingTime, mWaitPing, and tick_time.
Referenced by Ea::BeingRecv::processNameResponse(), EAthena::BeingRecv::processNameResponse2(), EAthena::BeingRecv::processNameResponseTitle(), EAthena::BeingRecv::processPlayerGuilPartyInfo(), and EAthena::BeingRecv::processPlayerGuilPartyInfo2().
|
virtual |
Implements PlayerDeathListener.
Definition at line 2910 of file localplayer.cpp.
References BeingAction::DEAD, Being::mAction, Being::recalcSpritesOrder(), and setAction().
void LocalPlayer::removeHome | ( | ) |
Definition at line 2830 of file localplayer.cpp.
References Properties::getProperty(), mHomes, and Actor::mMap.
Referenced by PopupMenu::handleLink().
void LocalPlayer::respawn | ( | ) |
Definition at line 2742 of file localplayer.cpp.
References navigateClean().
Referenced by PlayerPostDeathListener::action().
void LocalPlayer::saveHomes | ( | ) |
Definition at line 1964 of file localplayer.cpp.
References mHomes, serverConfig, Configuration::setValue(), Vector::x, and Vector::y.
Referenced by PopupMenu::handleLink(), and setHome().
|
virtual |
Sets the current action.
Reimplemented from Being.
Definition at line 409 of file localplayer.cpp.
References _, CAST_S32, BeingAction::DEAD, debugMsg, Net::ServerFeatures::haveKillerId(), mLastHitFrom, serverFeatures, Being::setAction(), setTarget(), and strprintf().
Referenced by attack(), imitateAction(), nextTile(), playerDeath(), Ea::PlayerRecv::processPlayerWarp(), stopWalking(), and untarget().
|
static |
Definition at line 2059 of file localplayer.cpp.
References config, serverConfig, and Configuration::setValue().
Referenced by setAway(), and setPseudoAway().
|
inline |
Definition at line 413 of file localplayer.h.
References mAfkTime.
Referenced by GameModifiers::changeAwayMode().
void LocalPlayer::setAway | ( | const std::string & | message | ) | const |
Definition at line 2052 of file localplayer.cpp.
References GameModifiers::changeAwayMode(), setAfkMessage(), and updateStatus().
|
inline |
Definition at line 416 of file localplayer.h.
References mAwayDialog.
Referenced by GameModifiers::changeAwayMode().
|
inline |
Tells the engine whether to check if the Player Name is to be displayed.
Definition at line 349 of file localplayer.h.
References mUpdateName.
Referenced by Setup_Relations::apply().
void LocalPlayer::setDestination | ( | const int | x, |
const int | y | ||
) |
Sets a new destination for this being to walk to.
Definition at line 623 of file localplayer.cpp.
References Settings::attackType, cur_time, BeingDirection::DOWN, BeingDirection::LEFT, mActivityTime, mAttackMoving, Being::mDest, Being::mDirection, mKeepAttacking, Settings::moveType, playerHandler, BeingDirection::RIGHT, Being::setDestination(), Net::PlayerHandler::setDestination(), Being::setDirection(), Net::PlayerHandler::setDirection(), settings, BeingDirection::UP, x, Vector::x, y, and Vector::y.
Referenced by fixAttackTarget(), logic(), move(), moveToHome(), pickUp(), startWalking(), and stopWalking().
void LocalPlayer::setFollow | ( | const std::string & | player | ) |
set a following player.
Definition at line 2373 of file localplayer.cpp.
References _, debugMsg, mPlayerFollowed, Actions::msg(), and strprintf().
void LocalPlayer::setGotoTarget | ( | Being *const | target | ) |
Sets going to being to attack
Definition at line 1041 of file localplayer.cpp.
References mGoingToTarget, mPickUpTarget, Being::mX, Being::mY, navigateTo(), and setTarget().
|
virtual |
Reimplemented from Being.
Definition at line 433 of file localplayer.cpp.
References chatWindow, ChatWindow::loadGMCommands(), Being::mIsGM, Being::setGroupId(), ChatWindow::showGMTab(), statusWindow, and StatusWindow::updateLevelLabel().
Referenced by EAthena::PlayerRecv::processPlayerAttrs(), and TmwAthena::PlayerHandler::setStat().
|
inline |
Definition at line 236 of file localplayer.h.
References Being::mInactive.
Referenced by GameModifiers::changeAwayMode(), and EventsManager::handleActive().
void LocalPlayer::setHome | ( | ) |
Definition at line 1846 of file localplayer.cpp.
References SocialWindow::addPortal(), MapItemType::ARROW_DOWN, MapItemType::ARROW_LEFT, MapItemType::ARROW_RIGHT, MapItemType::ARROW_UP, CAST_S32, BeingDirection::DOWN, MapItemType::EMPTY, KeyboardConfig::getKeyShortString(), SocialWindow::getPortalIndex(), Properties::getProperty(), Map::getSpecialLayer(), SpecialLayer::getTile(), MapItem::getType(), MapItemType::HOME, OutfitWindow::keyName(), BeingDirection::LEFT, Being::mAction, Being::mDirection, mHomes, Actor::mMap, Being::mX, Being::mY, SocialWindow::removePortal(), BeingDirection::RIGHT, saveHomes(), MapItem::setName(), SpecialLayer::setTile(), BeingAction::SIT, socialWindow, BeingDirection::UP, SpecialLayer::updateCache(), Map::updatePortalTile(), Vector::x, and Vector::y.
void LocalPlayer::setImitate | ( | const std::string & | player | ) |
set an imitation player.
Definition at line 2389 of file localplayer.cpp.
References _, debugMsg, mPlayerImitated, Actions::msg(), and strprintf().
|
inline |
Definition at line 367 of file localplayer.h.
References mLastHitFrom.
Referenced by Being::takeDamage().
|
virtual |
Sets the map the being is on
Reimplemented from Being.
Definition at line 1829 of file localplayer.cpp.
References BLOCK_END, BLOCK_START, mCrossX, mCrossY, navigateClean(), Being::setMap(), socialWindow, SocialWindow::updateActiveList(), and updateNavigateList().
Referenced by Game::changeMap(), EAthena::CharServerRecv::processChangeMapServer(), TmwAthena::CharServerRecv::processChangeMapServer(), and ActorManager::setMap().
|
inline |
Definition at line 196 of file localplayer.h.
References mMoveState.
Referenced by GameModifiers::changeMoveType().
Being * LocalPlayer::setNewTarget | ( | const ActorTypeT | type, |
const AllowSort | allowSort | ||
) |
Definition at line 607 of file localplayer.cpp.
References actorManager, ActorManager::findNearestLivingBeing(), localPlayer, mTarget, and setTarget().
Referenced by Actions::setTarget(), SkillDialog::useSkillDefault(), and SkillDialog::useSkillTarget().
void LocalPlayer::setNextDest | ( | const int | x, |
const int | y | ||
) |
setting the next destination of the following, in case of warp
Definition at line 2595 of file localplayer.cpp.
References mNextDestX, mNextDestY, x, and y.
Referenced by followMoveTo().
|
static |
Definition at line 2076 of file localplayer.cpp.
References Settings::pseudoAwayMode, setAfkMessage(), and settings.
void LocalPlayer::setRealPos | ( | const int | x, |
const int | y | ||
) |
Definition at line 2670 of file localplayer.cpp.
References MapItemType::CROSS, MapItemType::EMPTY, fixPos(), Map::getTempLayer(), SpecialLayer::getTile(), MapItem::getType(), Map::isCustom(), mCrossX, mCrossY, Actor::mMap, mShowServerPos, Being::mX, Being::mY, SpecialLayer::setTile(), Map::setWalk(), SpecialLayer::updateCache(), x, and y.
Referenced by EAthena::PlayerRecv::processWalkResponse(), and TmwAthena::PlayerRecv::processWalkResponse().
|
inline |
Definition at line 422 of file localplayer.h.
References mAllowRename.
Referenced by EAthena::CharServerRecv::readPlayerData().
void LocalPlayer::setTarget | ( | Being *const | target | ) |
Sets the target being of the player.
Definition at line 567 of file localplayer.cpp.
References Being::getType(), mLastTargetX, mLastTargetY, ActorType::Monster, mTarget, mVisibleNames, Being::mX, Being::mY, Being::setShowName(), VisibleName::ShowOnSelection, ActorSprite::untarget(), and Being::updateName().
Referenced by attack(), attack2(), ActorManager::clear(), followMoveTo(), ActorManager::logic(), setAction(), setGotoTarget(), setNewTarget(), untarget(), and ActorSprite::~ActorSprite().
void LocalPlayer::setTestParticle | ( | const std::string & | fileName, |
const bool | updateHash | ||
) |
Definition at line 2891 of file localplayer.cpp.
References ParticleEngine::addEffect(), ActorSprite::controlCustomParticle(), cur_time, fileName, UpdaterWindow::getFileHash(), ActorSprite::mChildParticleEffects, mTestParticle, mTestParticleHash, mTestParticleName, mTestParticleTime, particleEngine, and ParticleList::removeLocally().
Referenced by slowLogic().
|
virtual |
Sets the tile x and y coord
Reimplemented from Being.
Definition at line 2663 of file localplayer.cpp.
References Being::setTileCoords(), x, and y.
Referenced by fixPos(), EAthena::CharServerRecv::processChangeMapServer(), TmwAthena::CharServerRecv::processChangeMapServer(), EAthena::GameRecv::processMapLogin(), TmwAthena::GameRecv::processMapLogin(), and Ea::PlayerRecv::processPlayerWarp().
void LocalPlayer::setWalkingDir | ( | const unsigned char | dir | ) |
Sets a new direction to keep walking in.
Definition at line 664 of file localplayer.cpp.
References Being::mAction, BeingAction::MOVE, mWalkingDir, and startWalking().
Referenced by CrazyMoves::crazyMove1(), CrazyMoves::crazyMove2(), and specialMove().
void LocalPlayer::slowLogic | ( | ) |
Definition at line 357 of file localplayer.cpp.
References BeingFlag::AWAY, Settings::awayMode, BLOCK_END, BLOCK_START, cur_time, emote(), UpdaterWindow::getFileHash(), Net::ServerFeatures::havePlayerStatusUpdate(), BeingFlag::INACTIVE, ShopWindow::isShopEmpty(), mAdvertTime, mBlockAdvert, mEnableAdvert, Being::mInactive, mTestParticleHash, mTestParticleName, mTestParticleTime, mTradebot, Settings::pseudoAwayMode, Window::scheduleDelete(), serverFeatures, setTestParticle(), settings, BeingFlag::SHOP, shopWindow, BeingFlag::SPECIAL, weightNotice, and weightNoticeTime.
Referenced by Game::slowLogic().
void LocalPlayer::specialMove | ( | const unsigned char | direction | ) |
Definition at line 1719 of file localplayer.cpp.
References CrazyMoves::crazyMove(), crazyMoves, getMoveState(), Being::mAction, mMoveState, mNavigateX, mNavigateY, BeingAction::MOVE, moveByDirection(), Settings::moveType, navigateClean(), settings, and setWalkingDir().
Referenced by Game::moveInDirection().
|
protected |
Definition at line 674 of file localplayer.cpp.
References blockWalkMask, BeingDirection::DOWN, getBlockWalkMask(), Map::getWalk(), BeingDirection::LEFT, Being::mAction, Being::mDirection, Actor::mMap, BeingAction::MOVE, Being::mPath, mPickUpTarget, Being::mX, Being::mY, playerHandler, BeingDirection::RIGHT, Being::setDestination(), setDestination(), Being::setDirection(), Net::PlayerHandler::setDirection(), and BeingDirection::UP.
Referenced by nextTile(), and setWalkingDir().
void LocalPlayer::stopAdvert | ( | ) |
Definition at line 2842 of file localplayer.cpp.
References mBlockAdvert.
Referenced by EAthena::SkillRecv::processSkillFailed(), and TmwAthena::SkillRecv::processSkillFailed().
void LocalPlayer::stopAttack | ( | const bool | keepAttack | ) |
Definition at line 865 of file localplayer.cpp.
References BeingAction::ATTACK, Keep_true, PacketLimiter::limitPackets(), Being::mAction, mAttackNext, mKeepAttacking, mServerAttack, PacketType::PACKET_STOPATTACK, playerHandler, Net::PlayerHandler::stopAttack(), and untarget().
Referenced by attack(), logic(), Ea::BeingRecv::processBeingRemove(), EAthena::BeingRecv::processBeingResurrect(), TmwAthena::BeingRecv::processBeingResurrect(), EAthena::BeingRecv::processBeingSlide(), and Ea::PlayerRecv::processPlayerWarp().
void LocalPlayer::stopWalking | ( | const bool | sendToServer | ) |
Stops the player dead in his tracks
Definition at line 728 of file localplayer.cpp.
References Being::clearPath(), Being::mAction, BeingAction::MOVE, mPathSetByMouse, mPickUpTarget, Actor::mPixelX, Actor::mPixelY, mWalkingDir, navigateClean(), playerHandler, setAction(), setDestination(), Net::PlayerHandler::setDestination(), and BeingAction::STAND.
Referenced by EAthena::NpcHandler::getNpc(), and TmwAthena::NpcHandler::getNpc().
void LocalPlayer::targetMoved | ( | ) | const |
Definition at line 2267 of file localplayer.cpp.
bool LocalPlayer::toggleSit | ( | ) | const |
Definition at line 753 of file localplayer.cpp.
References BeingAction::ATTACK, BeingAction::CAST, Net::PlayerHandler::changeAction(), BeingAction::DEAD, BeingAction::HURT, PacketLimiter::limitPackets(), Being::mAction, BeingAction::MOVE, PacketType::PACKET_SIT, playerHandler, BeingAction::PRESTAND, BeingAction::SIT, BeingAction::SPAWN, and BeingAction::STAND.
Referenced by CrazyMoves::crazyMoveAs(), and Actions::doSit().
|
staticprotected |
Definition at line 1795 of file localplayer.cpp.
References chatWindow, PlayerInfo::getAttribute(), PlayerInfo::getSkillLevel(), PacketLimiter::limitPackets(), ChatWindow::localChatInput(), PacketType::PACKET_CHAT, and Attributes::PLAYER_MP.
Referenced by magicAttack().
void LocalPlayer::tryPingRequest | ( | ) |
Definition at line 2042 of file localplayer.cpp.
References mPingSendTick, pingRequest(), and tick_time.
Referenced by DebugWindow::slowLogic().
|
inline |
Definition at line 325 of file localplayer.h.
References mPickUpTarget.
Referenced by ActorManager::clear(), and ActorManager::logic().
void LocalPlayer::untarget | ( | ) |
Definition at line 878 of file localplayer.cpp.
References BeingAction::ATTACK, Being::mAction, mTarget, setAction(), setTarget(), and BeingAction::STAND.
Referenced by stopAttack().
|
protectedvirtual |
Updates name's location.
Reimplemented from Being.
Definition at line 2195 of file localplayer.cpp.
References actorManager, SpecialLayer::addRoad(), BeingId_zero, SpecialLayer::clean(), ActorManager::findBeing(), fixPos(), Map::getTempLayer(), PopupManager::hideBeingPopup(), mapTileSize, mDrawPath, Actor::mMap, mNavigateId, mNavigatePath, mNavigateX, mNavigateY, mOldTileX, mOldTileY, mOldX, mOldY, Actor::mPixelX, Actor::mPixelY, mShowNavigePath, Being::mX, Being::mY, navigateClean(), socialWindow, Being::updateCoords(), updateMusic(), SocialWindow::updatePortals(), x, and y.
void LocalPlayer::updateMusic | ( | ) | const |
Definition at line 2178 of file localplayer.cpp.
References SoundManager::fadeOutAndPlayMusic(), SoundManager::fadeOutMusic(), SoundManager::getCurrentMusicFile(), Map::getMusicFile(), Map::getObjectData(), Actor::mMap, MapItemType::MUSIC, Being::mX, Being::mY, and soundManager.
Referenced by updateCoords().
void LocalPlayer::updateNavigateList | ( | ) |
Definition at line 2752 of file localplayer.cpp.
References Map::addPortalTile(), CAST_S32, Properties::getProperty(), MapItemType::HOME, mHomes, Actor::mMap, Vector::x, and Vector::y.
Referenced by setMap(), and ~LocalPlayer().
bool LocalPlayer::updateSit | ( | ) | const |
Definition at line 782 of file localplayer.cpp.
References Net::PlayerHandler::changeAction(), PacketLimiter::limitPackets(), Being::mAction, PacketType::PACKET_SIT, and playerHandler.
Referenced by Actions::doSit().
void LocalPlayer::updateStatus | ( | ) | const |
Definition at line 2867 of file localplayer.cpp.
References BeingFlag::AWAY, Settings::awayMode, Net::getNetworkType(), Net::ServerFeatures::havePlayerStatusUpdate(), BeingFlag::INACTIVE, ShopWindow::isShopEmpty(), mEnableAdvert, Being::mInactive, mTradebot, playerHandler, Settings::pseudoAwayMode, serverFeatures, settings, BeingFlag::SHOP, shopWindow, ServerType::TMWATHENA, and Net::PlayerHandler::updateStatus().
Referenced by ShopWindow::action(), AwayListener::action(), ShopWindow::addBuyItem(), ShopWindow::addSellItem(), createGuiWindows(), EventsManager::handleActive(), and setAway().
void LocalPlayer::waitFor | ( | const std::string & | nick | ) |
Definition at line 2777 of file localplayer.cpp.
References mWaitFor.
bool LocalPlayer::withinAttackRange | ( | const Being *const | target, |
const bool | fixDistance, | ||
const int | addRange | ||
) | const |
Returns whether the target is in range to attack
Definition at line 1022 of file localplayer.cpp.
References CAST_S32, getAttackRange(), Being::mX, and Being::mY.
Referenced by attack2(), and nextTile().
|
protected |
Definition at line 488 of file localplayer.h.
Referenced by fixPos(), logic(), and setDestination().
|
protected |
Definition at line 502 of file localplayer.h.
Referenced by slowLogic().
|
protected |
Definition at line 487 of file localplayer.h.
Referenced by afkRespond(), and setAfkTime().
|
protected |
Definition at line 535 of file localplayer.h.
Referenced by getRename(), and setRename().
|
protected |
Definition at line 522 of file localplayer.h.
Referenced by optionChanged(), and setDestination().
|
protected |
Definition at line 523 of file localplayer.h.
Referenced by optionChanged(), and stopAttack().
|
protected |
Definition at line 483 of file localplayer.h.
Referenced by setAwayDialog(), and ~LocalPlayer().
|
protected |
Definition at line 482 of file localplayer.h.
Referenced by getAwayListener(), and ~LocalPlayer().
|
protected |
Definition at line 512 of file localplayer.h.
Referenced by slowLogic(), and stopAdvert().
|
protected |
Definition at line 492 of file localplayer.h.
Referenced by fixPos(), logic(), moveToHome(), setMap(), setRealPos(), and ~LocalPlayer().
|
protected |
Definition at line 493 of file localplayer.h.
Referenced by fixPos(), logic(), moveToHome(), setMap(), setRealPos(), and ~LocalPlayer().
|
protected |
Definition at line 521 of file localplayer.h.
Referenced by navigateTo(), optionChanged(), and updateCoords().
|
protected |
Definition at line 516 of file localplayer.h.
Referenced by optionChanged(), slowLogic(), and updateStatus().
|
protected |
Definition at line 536 of file localplayer.h.
Referenced by canMove(), freezeMoving(), and logic().
|
protected |
Definition at line 528 of file localplayer.h.
Referenced by nextTile(), and setGotoTarget().
|
protected |
Definition at line 462 of file localplayer.h.
Referenced by loadHomes(), moveToHome(), removeHome(), saveHomes(), setHome(), and updateNavigateList().
|
protected |
Definition at line 519 of file localplayer.h.
Referenced by allowAction(), isServerBuggy(), and optionChanged().
|
protected |
Definition at line 530 of file localplayer.h.
Referenced by attack(), attack2(), logic(), setDestination(), and stopAttack().
|
protected |
Definition at line 474 of file localplayer.h.
Referenced by allowAction(), and logic().
|
protected |
Definition at line 500 of file localplayer.h.
Referenced by setAction(), and setLastHitFrom().
|
protected |
Definition at line 459 of file localplayer.h.
Referenced by moveToTarget(), and setTarget().
|
protected |
Definition at line 460 of file localplayer.h.
Referenced by moveToTarget(), and setTarget().
|
protected |
Queued messages
Definition at line 480 of file localplayer.h.
Referenced by addHomunXpMessage(), addHpMessage(), addJobMessage(), addMessageToQueue(), addSpMessage(), addXpMessage(), and logic().
|
protected |
Definition at line 481 of file localplayer.h.
Referenced by logic().
|
protected |
Definition at line 457 of file localplayer.h.
Referenced by getMoveState(), setMoveState(), and specialMove().
|
protected |
Definition at line 491 of file localplayer.h.
Referenced by navigateClean(), navigateTo(), and updateCoords().
|
protected |
Definition at line 498 of file localplayer.h.
Referenced by logic(), moveToTarget(), navigateClean(), navigateTo(), nextTile(), and updateCoords().
|
protected |
Definition at line 489 of file localplayer.h.
Referenced by logic(), moveToTarget(), navigateClean(), navigateTo(), specialMove(), and updateCoords().
|
protected |
Definition at line 490 of file localplayer.h.
Referenced by logic(), moveToTarget(), navigateClean(), navigateTo(), specialMove(), and updateCoords().
|
protected |
Definition at line 469 of file localplayer.h.
Referenced by getNextDestX(), and setNextDest().
|
protected |
Definition at line 470 of file localplayer.h.
Referenced by getNextDestY(), and setNextDest().
|
protected |
Definition at line 526 of file localplayer.h.
Referenced by logic(), and nextTile().
|
protected |
Definition at line 496 of file localplayer.h.
Referenced by navigateClean(), navigateTo(), and updateCoords().
|
protected |
Definition at line 497 of file localplayer.h.
Referenced by navigateClean(), navigateTo(), and updateCoords().
|
protected |
Definition at line 494 of file localplayer.h.
Referenced by navigateClean(), navigateTo(), and updateCoords().
|
protected |
Definition at line 495 of file localplayer.h.
Referenced by navigateClean(), navigateTo(), and updateCoords().
|
protected |
Definition at line 532 of file localplayer.h.
Referenced by isPathSetByMouse(), pathSetByMouse(), and stopWalking().
|
protected |
Definition at line 472 of file localplayer.h.
Referenced by actorSpriteDestroyed(), attack2(), followMoveTo(), getPickUpTarget(), move(), moveToHome(), nextTile(), pickUp(), setGotoTarget(), startWalking(), stopWalking(), and unSetPickUpTarget().
|
protected |
Definition at line 485 of file localplayer.h.
Referenced by getPingTime(), pingRequest(), pingResponse(), and tryPingRequest().
|
protected |
Definition at line 486 of file localplayer.h.
Referenced by getPingTime(), and pingResponse().
|
protected |
Follow system
Definition at line 467 of file localplayer.h.
Referenced by cancelFollow(), followMoveTo(), getFollow(), and setFollow().
|
protected |
Definition at line 468 of file localplayer.h.
Referenced by cancelFollow(), getImitate(), imitateAction(), imitateDirection(), imitateOutfit(), and setImitate().
|
protected |
Definition at line 514 of file localplayer.h.
Referenced by attack(), optionChanged(), and stopAttack().
|
protected |
Definition at line 524 of file localplayer.h.
Referenced by attributeChanged(), and optionChanged().
|
protected |
Definition at line 534 of file localplayer.h.
Referenced by navigateClean(), navigateTo(), and updateCoords().
|
protected |
Definition at line 525 of file localplayer.h.
Referenced by optionChanged(), and setRealPos().
|
protected |
Definition at line 476 of file localplayer.h.
Referenced by handleStatusEffect().
|
protected |
Definition at line 520 of file localplayer.h.
Referenced by fixPos(), logic(), and optionChanged().
|
protected |
Definition at line 507 of file localplayer.h.
Referenced by fixPos(), LocalPlayer(), and optionChanged().
|
protected |
Definition at line 464 of file localplayer.h.
Referenced by attack(), fixAttackTarget(), followMoveTo(), getLastAttackX(), getLastAttackY(), getTarget(), logic(), moveToTarget(), nextTile(), setNewTarget(), setTarget(), and untarget().
|
protected |
Definition at line 513 of file localplayer.h.
Referenced by logic(), and optionChanged().
|
protected |
Definition at line 518 of file localplayer.h.
Referenced by getPathLength(), and optionChanged().
|
protected |
Definition at line 503 of file localplayer.h.
Referenced by setTestParticle().
|
protected |
Definition at line 506 of file localplayer.h.
Referenced by setTestParticle(), and slowLogic().
|
protected |
Definition at line 504 of file localplayer.h.
Referenced by setTestParticle(), and slowLogic().
|
protected |
Definition at line 505 of file localplayer.h.
Referenced by setTestParticle(), and slowLogic().
|
protected |
Definition at line 517 of file localplayer.h.
Referenced by optionChanged(), slowLogic(), and updateStatus().
|
protected |
Definition at line 508 of file localplayer.h.
Referenced by freezeMoving(), and logic().
|
protected |
Whether or not the name settings have changed
Definition at line 511 of file localplayer.h.
Referenced by getCheckNameSetting(), and setCheckNameSetting().
|
protected |
Definition at line 515 of file localplayer.h.
Referenced by optionChanged(), and setTarget().
|
protected |
Definition at line 501 of file localplayer.h.
Referenced by checkNewName(), and waitFor().
|
protected |
Definition at line 533 of file localplayer.h.
Referenced by getPingTime(), pingRequest(), and pingResponse().
|
protected |
Definition at line 509 of file localplayer.h.
Referenced by getWalkingDir(), nextTile(), setWalkingDir(), and stopWalking().