ManaPlus
|
#include <being.h>
Public Member Functions | |
Being (const BeingId id, const ActorTypeT type) | |
~Being () | |
ActorTypeT | getType () const |
void | clearPath () |
int | getActionTime () const |
void | setActionTime (const int actionTime) |
virtual void | nextTile () |
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 |
virtual void | setTileCoords (const int x, const int y) |
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 | logic () |
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 |
virtual unsigned char | getBlockWalkMask () const |
BlockTypeT | getBlockType () const |
void | setWalkSpeed (const int speed) |
int | getWalkSpeed () const |
void | setAttackSpeed (const int speed) |
int | getAttackSpeed () const |
virtual void | setAction (const BeingActionT &action, const int attackId) |
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 | optionChanged (const std::string &value) |
void | flashName (const int time) |
int | getDamageTaken () const |
void | setDamageTaken (const int damage) |
void | updateName () |
void | setLevel (const int n) |
virtual int | getLevel () const |
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 | setMap (Map *const map) |
void | recreateItemParticles () |
void | incUsage () |
int | decUsage () |
virtual int | getLastAttackX () const |
virtual int | getLastAttackY () const |
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 |
virtual void | setGroupId (const int id) |
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 () |
Static Public Member Functions | |
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) |
Data Fields | |
NextSoundInfo | mNextSound |
Data Fields inherited from CompoundSprite | |
std::vector< Sprite * > | mSprites |
Data Fields inherited from Actor | |
int | mPixelX |
int | mPixelY |
Protected Types | |
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 | 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 |
virtual void | updateCoords () |
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) |
virtual void | handleStatusEffect (const StatusEffect *const effect, const int32_t effectId, 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 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 () |
Static Protected Attributes | |
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 |
Friends | |
class | ActorManager |
class | BeingEquipBackend |
class | LocalPlayer |
Additional Inherited Members | |
Public Types inherited from CompoundSprite | |
typedef std::vector< Sprite * >::iterator | SpriteIterator |
typedef std::vector< Sprite * >::const_iterator | SpriteConstIterator |
|
protected |
|
protected |
Being::Being | ( | const BeingId | id, |
const ActorTypeT | type | ||
) |
Constructor.
id | a unique being id |
subtype | partly determines the type of the being |
map | the map the being is on |
Definition at line 162 of file being.cpp.
References for_each_badges, mBadges, mSpriteDraw, mSpriteHide, and mSpriteRemap.
Referenced by createBeing().
Being::~Being | ( | ) |
Definition at line 337 of file being.cpp.
References CHECKLISTENERS, config, delete2, for_each_badges, mAnimationEffect, mBadges, mBadgesCount, mCastingEffect, mChat, mDispName, mEmotionSprite, mSpeechBubble, mSpiritParticles, mSpriteDraw, mSpriteHide, mSpriteRemap, mText, removeAllItemsParticles(), removeHorse(), and Configuration::removeListener().
void Being::addAfkEffect | ( | ) |
Definition at line 4918 of file being.cpp.
References addSpecialEffect(), and mAwayEffect.
Referenced by GameModifiers::changeAwayMode(), and updateAwayEffect().
void Being::addCast | ( | const int | dstX, |
const int | dstY, | ||
const int | skillId, | ||
const int | skillLevel, | ||
const int | range, | ||
const int | waitTimeTicks | ||
) |
Definition at line 5369 of file being.cpp.
References data, delete2, SkillDialog::getSkillDataByLevel(), mCastEndTime, mCastingEffect, Actor::mMap, reportAlways, Actor::setMap(), skillDialog, and tick_time.
Referenced by EAthena::BeingRecv::processSkillCastingContinue().
void Being::addEffect | ( | const std::string & | name | ) |
Definition at line 4959 of file being.cpp.
References Configuration::getStringValue(), AnimatedSprite::load(), and paths.
Referenced by EffectManager::trigger(), and EffectManager::triggerReturn().
void Being::addGuild | ( | Guild *const | guild | ) |
Adds a guild to the being.
Definition at line 1237 of file being.cpp.
References SocialWindow::addTab(), guild, localPlayer, anonymous_namespace{badgesdb.cpp}::mGuilds, and socialWindow.
Referenced by GuildManager::createTab(), and EAthena::GuildRecv::processGuildPositionInfo().
|
protected |
Definition at line 5044 of file being.cpp.
References ParticleEngine::addEffect(), ParticleEngine::enabled, FOR_EACH, particleEngine, and restrict.
|
protected |
Definition at line 5081 of file being.cpp.
References ParticleEngine::addEffect(), ParticleEngine::enabled, FOR_EACH, ItemDB::get(), Actions::info(), Item::isItem(), maxCards, particleEngine, and restrict.
void Being::addSpecialEffect | ( | const int | effect | ) |
Definition at line 4928 of file being.cpp.
References effectManager, ParticleEngine::enabled, and EffectManager::triggerReturn().
Referenced by addAfkEffect(), QuestsWindow::addEffect(), and ActorManager::updateEffects().
|
protected |
Definition at line 5495 of file being.cpp.
References effectManager, and EffectManager::triggerReturn().
void Being::addToCache | ( | ) | const |
Definition at line 3513 of file being.cpp.
References BeingFlag::AWAY, beingInfoCache, CACHE_SIZE, cur_time, getCacheEntry(), getGuildName(), ActorSprite::getId(), getIp(), getLevel(), Net::getNetworkType(), getPartyName(), getPvpRank(), getTeamId(), BeingFlag::INACTIVE, isAdvanced(), localPlayer, mAway, mInactive, mLowTraffic, mName, mShop, BeingCacheEntry::setAdvanced(), BeingCacheEntry::setFlags(), BeingCacheEntry::setGuildName(), BeingCacheEntry::setIp(), BeingCacheEntry::setLevel(), BeingCacheEntry::setName(), BeingCacheEntry::setPartyName(), BeingCacheEntry::setPvpRank(), BeingCacheEntry::setTeamId(), BeingCacheEntry::setTime(), BeingFlag::SHOP, and ServerType::TMWATHENA.
Referenced by ActorManager::logic(), ActorManager::parseLevels(), EAthena::GuildRecv::processGuildSetPosition(), Ea::BeingRecv::processNameResponse(), EAthena::BeingRecv::processNameResponse2(), EAthena::BeingRecv::processNameResponseTitle(), EAthena::BeingRecv::processPlayerGuilPartyInfo(), TmwAthena::BeingRecv::processPlayerGuilPartyInfo(), EAthena::BeingRecv::processPlayerGuilPartyInfo2(), TmwAthena::BeingRecv::processPvpSet(), and setAdvanced().
|
protected |
Definition at line 2080 of file being.cpp.
References BeingAction::ATTACK, BeingAction::CAST, BeingAction::DEAD, BeingDirection::DOWN, BeingInfo::getAttackOffsetX(), BeingInfo::getAttackOffsetY(), getBlockWalkMask(), getCurrentAction(), BeingInfo::getDeadOffsetX(), BeingInfo::getDeadOffsetY(), BeingInfo::getMoveOffsetX(), BeingInfo::getMoveOffsetY(), BeingInfo::getSitOffsetX(), BeingInfo::getSitOffsetY(), BeingInfo::getTargetOffsetX(), BeingInfo::getTargetOffsetY(), Map::getWalk(), BeingAction::HURT, BeingDirection::LEFT, mDirection, mInfo, Actor::mMap, BeingAction::MOVE, mOwner, mX, mY, BeingAction::PRESTAND, BeingDirection::RIGHT, BeingAction::SIT, BeingAction::SPAWN, BeingAction::STAND, and BeingDirection::UP.
Referenced by botLogic(), and updateBotFollow().
void Being::botLogic | ( | ) |
Definition at line 1999 of file being.cpp.
References BeingAction::ATTACK, Net::HomunculusHandler::attack(), Net::MercenaryHandler::attack(), botFixOffset(), BeingAction::CAST, CAST_S32, BeingAction::DEAD, ActorSprite::getId(), LocalPlayer::getTarget(), BeingInfo::getThinkTime(), BeingInfo::getWarpDist(), ActorType::Homunculus, homunculusHandler, BeingAction::HURT, Keep_true, localPlayer, mAction, mBotAi, mercenaryHandler, mInfo, Actor::mMap, mMoveTime, BeingAction::MOVE, moveBotTo(), Net::HomunculusHandler::moveToMaster(), Net::MercenaryHandler::moveToMaster(), mOwner, mType, mX, mY, BeingAction::PRESTAND, BeingAction::SIT, BeingAction::SPAWN, BeingAction::STAND, tick_time, and updateBotFollow().
Referenced by logic().
uint8_t Being::calcDirection | ( | ) | const |
Definition at line 1753 of file being.cpp.
References BeingDirection::DOWN, BeingDirection::LEFT, mDest, mX, mY, BeingDirection::RIGHT, BeingDirection::UP, Vector::x, and Vector::y.
Referenced by nextTile().
uint8_t Being::calcDirection | ( | const int | dstX, |
const int | dstY | ||
) | const |
Definition at line 1767 of file being.cpp.
References BeingDirection::DOWN, BeingDirection::LEFT, BeingDirection::RIGHT, and BeingDirection::UP.
Referenced by EAthena::BeingRecv::processBeingMove(), and TmwAthena::BeingRecv::processPlayerMove().
|
inline |
|
static |
Definition at line 4719 of file being.cpp.
References beingInfoCache, and delete_all().
Referenced by Game::~Game().
void Being::clearGuilds | ( | ) |
Removes all guilds the being is in.
Definition at line 1289 of file being.cpp.
References FOR_EACH, guild, localPlayer, mGuilds, ActorSprite::mId, SocialWindow::removeTab(), and socialWindow.
Referenced by GuildManager::afterRemove(), GuildManager::process(), EAthena::GuildRecv::processGuildExpulsionContinue(), EAthena::GuildRecv::processGuildLeave(), EAthena::GuildRecv::processGuildLeave2(), TmwAthena::BeingRecv::processPlayerMove(), TmwAthena::BeingRecv::processPlayerUpdate1(), TmwAthena::BeingRecv::processPlayerUpdate2(), and updateGuild().
void Being::clearPath | ( | ) |
Removes all path nodes from this being.
Definition at line 554 of file being.cpp.
References mPath.
Referenced by EAthena::BeingRecv::processBeingVisible(), TmwAthena::BeingRecv::processBeingVisible(), and LocalPlayer::stopWalking().
|
static |
Definition at line 5575 of file being.cpp.
References Being(), and postInit().
Referenced by ActorManager::createBeing(), and NpcDialog::showAvatar().
|
protected |
Definition at line 366 of file being.cpp.
References CREATEWIDGETV0, and mSpeechBubble.
|
inline |
|
inline |
|
virtual |
Draws the Actor to the given graphics context.
Note: this function could be simplified if the graphics context would support setting a translation offset. It already does this partly with the clipping rectangle support.
Implements Actor.
Definition at line 3839 of file being.cpp.
References ActorType::Avatar, ActorType::Elemental, ActorType::FloorItem, ActorType::Homunculus, ActorType::Mercenary, ActorType::Monster, ActorType::Npc, ActorType::Pet, ActorType::Player, ActorType::Portal, ActorType::SkillUnit, and ActorType::Unknown.
Referenced by DebugWindow::draw(), and DebugWindow::safeDraw().
void Being::drawBasic | ( | Graphics *const | graphics, |
const int | x, | ||
const int | y | ||
) | const |
Definition at line 3930 of file being.cpp.
Referenced by PlayerBox::draw().
|
protected |
Definition at line 3734 of file being.cpp.
References AnimatedSprite::draw(), BeingInfo::getTargetOffsetX(), BeingInfo::getTargetOffsetY(), ActorSprite::mCursorPaddingX, ActorSprite::mCursorPaddingY, MILLISECONDS_IN_A_TICK, mInfo, ActorSprite::mUsedTargetCursor, tick_time, and AnimatedSprite::update().
|
protected |
|
protected |
Definition at line 3937 of file being.cpp.
References Graphics::drawImage(), drawPlayerSprites(), FUNC_BLOCK, Sprite::mAlpha, CompoundSprite::mAlphaImage, CompoundSprite::mImage, CompoundSprite::mNeedsRedraw, CompoundSprite::mOffsetX, CompoundSprite::mOffsetY, CompoundSprite::mSprites, and CompoundSprite::updateImages().
void Being::drawElemental | ( | Graphics *const | graphics, |
const int | offsetX, | ||
const int | offsetY | ||
) | const |
Definition at line 3816 of file being.cpp.
References mapTileSize.
|
protected |
Definition at line 4169 of file being.cpp.
References BeingAction::DEAD, CompoundSprite::drawSimple(), Attributes::ELEMENTAL_HP, UserColorId::ELEMENTAL_HP, UserColorId::ELEMENTAL_HP2, Attributes::ELEMENTAL_MAX_HP, UserPalette::getColorWithAlpha(), PlayerInfo::getElementalId(), PlayerInfo::getStatBase(), mapTileSize, UserColorId::MONSTER_ATTACK_RANGE, userPalette, x, and y.
void Being::drawEmotion | ( | Graphics *const | graphics, |
const int | offsetX, | ||
const int | offsetY | ||
) | const |
Draws the emotion picture above the being.
Definition at line 2375 of file being.cpp.
References for_each_badges, BadgeDrawType::Hide, mapTileSize, restrict, x, and y.
void Being::drawHomunculus | ( | Graphics *const | graphics, |
const int | offsetX, | ||
const int | offsetY | ||
) | const |
Definition at line 3792 of file being.cpp.
References mapTileSize.
|
protected |
Definition at line 4059 of file being.cpp.
References BeingAction::DEAD, CompoundSprite::drawSimple(), UserPalette::getColorWithAlpha(), PlayerInfo::getHomunculus(), PlayerInfo::getStatBase(), Attributes::HOMUN_HP, UserColorId::HOMUN_HP, UserColorId::HOMUN_HP2, Attributes::HOMUN_MAX_HP, Actions::info(), mapTileSize, UserColorId::MONSTER_ATTACK_RANGE, userPalette, x, and y.
void Being::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 |
Definition at line 4253 of file being.cpp.
References UserPalette::getColorWithAlpha(), Net::ServerFeatures::haveServerHp(), localPlayer, serverFeatures, userPalette, x, and y.
void Being::drawMercenary | ( | Graphics *const | graphics, |
const int | offsetX, | ||
const int | offsetY | ||
) | const |
Definition at line 3804 of file being.cpp.
References mapTileSize.
|
protected |
Definition at line 4114 of file being.cpp.
References BeingAction::DEAD, CompoundSprite::drawSimple(), UserPalette::getColorWithAlpha(), PlayerInfo::getMercenary(), PlayerInfo::getStatBase(), Actions::info(), mapTileSize, Attributes::MERC_HP, UserColorId::MERC_HP, UserColorId::MERC_HP2, Attributes::MERC_MAX_HP, UserColorId::MONSTER_ATTACK_RANGE, userPalette, x, and y.
void Being::drawMonster | ( | Graphics *const | graphics, |
const int | offsetX, | ||
const int | offsetY | ||
) | const |
Definition at line 3780 of file being.cpp.
References mapTileSize.
|
protected |
Definition at line 4005 of file being.cpp.
References BeingAction::DEAD, CompoundSprite::drawSimple(), UserPalette::getColorWithAlpha(), LocalPlayer::getTarget(), localPlayer, mapTileSize, ActorType::Monster, UserColorId::MONSTER_ATTACK_RANGE, UserColorId::MONSTER_HP, UserColorId::MONSTER_HP2, userPalette, x, and y.
void Being::drawNpc | ( | Graphics *const | graphics, |
const int | offsetX, | ||
const int | offsetY | ||
) | const |
Definition at line 3768 of file being.cpp.
References mapTileSize.
|
protected |
void Being::drawOther | ( | Graphics *const | graphics, |
const int | offsetX, | ||
const int | offsetY | ||
) | const |
Definition at line 3756 of file being.cpp.
References mapTileSize.
|
protected |
Definition at line 3991 of file being.cpp.
References CompoundSprite::drawSimple(), x, and y.
void Being::drawPlayer | ( | Graphics *const | graphics, |
const int | offsetX, | ||
const int | offsetY | ||
) | const |
Definition at line 3694 of file being.cpp.
References HorseOffset::downOffsetX, HorseOffset::downOffsetY, for_each_horses, mapTileSize, HorseOffset::riderOffsetX, HorseOffset::riderOffsetY, HorseOffset::upOffsetX, and HorseOffset::upOffsetY.
|
protected |
Definition at line 3967 of file being.cpp.
References BeingAction::DEAD, PlayerInfo::getAttribute(), localPlayer, mapTileSize, Attributes::PLAYER_HP, UserColorId::PLAYER_HP, UserColorId::PLAYER_HP2, Attributes::PLAYER_MAX_HP, x, and y.
void Being::drawPlayerSprites | ( | Graphics *const | graphics, |
const int | posX, | ||
const int | posY | ||
) | const |
Definition at line 3893 of file being.cpp.
References CompoundSprite::getNumberOfLayers(), and restrict.
Referenced by drawCompound().
void Being::drawPortal | ( | Graphics *const | graphics, |
const int | offsetX, | ||
const int | offsetY | ||
) | const |
Definition at line 3828 of file being.cpp.
References mapTileSize.
|
protected |
Definition at line 4222 of file being.cpp.
References UserColorId::BEING, CompoundSprite::drawSimple(), Font::drawString(), UserPalette::getColor(), Gui::getFont(), gui, mapTileSize, Ea::GameRecv::mMap, UserColorId::PORTAL_HIGHLIGHT, userPalette, x, and y.
void Being::drawSpeech | ( | const int | offsetX, |
const int | offsetY | ||
) |
Draws the speech text above the being.
Definition at line 2405 of file being.cpp.
References Graphics::CENTER, delete2, Theme::getColor(), mapTileSize, BeingSpeech::NAME_IN_BUBBLE, BeingSpeech::NO_NAME_IN_BUBBLE, BeingSpeech::NO_SPEECH, Speech_true, MailMessageType::Text, BeingSpeech::TEXT_OVERHEAD, theme, userPalette, Visible_false, and Visible_true.
|
virtual |
|
protected |
|
inline |
void Being::enableShop | ( | const bool | b | ) |
Definition at line 5344 of file being.cpp.
Referenced by ShopWindow::buyingStoreEnabled(), and ShopWindow::vendingEnabled().
void Being::fireMissile | ( | Being *const | victim, |
const MissileInfo & | missile | ||
) | const |
Shoots a missile particle from this being, to target being
Definition at line 1378 of file being.cpp.
References BLOCK_END, BLOCK_START, ParticleEngine::createChild(), particleEngine, and restrict.
void Being::fixDirectionOffsets | ( | int & | offsetX, |
int & | offsetY | ||
) | const |
Definition at line 5528 of file being.cpp.
References BeingDirection::DOWN, BeingDirection::LEFT, mDirection, BeingDirection::RIGHT, and BeingDirection::UP.
Referenced by SkillDialog::useSkillDefault(), SkillDialog::useSkillPosition(), and SkillDialog::useSkillTarget().
|
inlinestatic |
Definition at line 927 of file being.h.
References Gender::FEMALE, Gender::MALE, and Gender::UNSPECIFIED.
Referenced by EAthena::CharServerHandler::connect(), EAthena::GameHandler::connect(), TmwAthena::CharServerHandler::connect(), TmwAthena::GameHandler::connect(), and EAthena::CharServerHandler::newCharacter().
|
inline |
Returns the time spent in the current action.
Definition at line 128 of file being.h.
References mActionTime.
|
inline |
|
inline |
std::string Being::getAttackAction | ( | const Attack *const | attack1 | ) | const |
Definition at line 1471 of file being.cpp.
References BlockMask::AIR, Ea::GameRecv::mMap, and BlockMask::WATER.
|
inline |
Definition at line 773 of file being.h.
References mAttackDelay.
Referenced by TargetDebugTab::logic().
|
inline |
|
inline |
|
inlinevirtual |
Gets the way the monster blocks pathfinding for other objects
Reimplemented from ActorSprite.
Definition at line 442 of file being.h.
References BeingInfo::getBlockType(), mInfo, and BlockType::NONE.
|
inlinevirtual |
Gets the way the object is blocked by other objects.
Reimplemented in LocalPlayer.
Definition at line 432 of file being.h.
References BeingInfo::getBlockWalkMask(), and mInfo.
Referenced by botFixOffset(), moveBotTo(), and nextTile().
|
inline |
|
inline |
Definition at line 153 of file being.h.
References mCachedX.
Referenced by Ea::BeingRecv::processBeingMove3().
|
inline |
Definition at line 156 of file being.h.
References mCachedY.
Referenced by Ea::BeingRecv::processBeingMove3().
|
static |
Definition at line 3559 of file being.cpp.
References beingInfoCache, cur_time, and FOR_EACH.
Referenced by addToCache(), and updateFromCache().
std::string Being::getCastAction | ( | const SkillInfo *const | skill | ) | const |
Definition at line 1490 of file being.cpp.
References BlockMask::AIR, Ea::GameRecv::mMap, Actions::skill(), and BlockMask::WATER.
|
inline |
Definition at line 999 of file being.h.
References mChat.
Referenced by PopupMenu::addChat(), PopupMenu::handleLink(), EAthena::ChatRecv::processChatRoomSettings(), ActorManager::removeRoom(), BeingPopup::show(), and ActorManager::updateRoom().
|
inline |
|
inline |
Definition at line 812 of file being.h.
References mComment.
Referenced by PopupMenu::handleLink(), and BeingPopup::show().
|
inline |
Definition at line 1028 of file being.h.
References mCreatorId.
Referenced by PopupMenu::showPopup().
|
inline |
Definition at line 788 of file being.h.
References mCriticalHit.
Referenced by TargetDebugTab::logic().
|
inline |
Get the being's action currently performed.
Definition at line 482 of file being.h.
References mAction.
Referenced by EAthena::BeingRecv::applyPlayerAction(), TmwAthena::BeingRecv::applyPlayerAction(), botFixOffset(), ActorManager::cloneBeing(), CrazyMoves::crazyMove1(), CrazyMoves::crazyMove2(), CrazyMoves::crazyMove3(), CrazyMoves::crazyMove4(), CrazyMoves::crazyMove5(), CrazyMoves::crazyMove6(), CrazyMoves::crazyMove7(), CrazyMoves::crazyMove8(), CrazyMoves::crazyMove9(), CrazyMoves::crazyMoveA(), Ea::BeingRecv::processBeingRemove(), TmwAthena::BeingRecv::processPlayerMove(), Ea::BeingRecv::processPlayerStop(), and updateBotDirection().
|
inline |
Definition at line 593 of file being.h.
References mDamageTaken.
Referenced by ActorManager::findMostDamagedPlayer(), BeingPopup::show(), showName(), and SocialPlayersTab::updateAvatar().
|
staticprotected |
Definition at line 953 of file being.cpp.
References AttackType::CRITICAL, Configuration::getIntValue(), AttackType::MISS, and paths.
Referenced by getHitEffect().
|
inline |
|
inline |
Returns the current direction.
Definition at line 494 of file being.h.
References mDirection.
Referenced by ActorManager::cloneBeing(), CrazyMoves::crazyMove1(), CrazyMoves::crazyMove2(), CrazyMoves::crazyMove8(), CrazyMoves::crazyMove9(), CrazyMoves::crazyMoveAd(), CrazyMoves::crazyMoveAm(), EventsManager::handleEvents(), Game::handleMove(), EAthena::BeingRecv::processBeingMove(), TmwAthena::BeingRecv::processPlayerMove(), TmwAthena::BeingRecv::processPlayerUpdate1(), and TmwAthena::BeingRecv::processPlayerUpdate2().
|
inline |
Definition at line 505 of file being.h.
References mDirectionDelayed.
Referenced by TmwAthena::BeingRecv::processPlayerMove(), TmwAthena::BeingRecv::processPlayerUpdate1(), and TmwAthena::BeingRecv::processPlayerUpdate2().
|
inline |
Definition at line 552 of file being.h.
References mDistance.
Referenced by ActorManager::findNearestLivingBeing().
Equipment * Being::getEquipment | ( | ) |
Definition at line 4697 of file being.cpp.
References BeingEquipBackend, doctest::detail::binaryAssertComparison::eq, DragDropSource::Equipment, and restrict.
Referenced by EquipmentWindow::setBeing().
|
inline |
|
inline |
Definition at line 235 of file being.h.
References mExtName.
Referenced by PopupMenu::showChatPopup(), and PopupMenu::showPopup().
|
inline |
Definition at line 626 of file being.h.
References mGender.
Referenced by ActorManager::cloneBeing(), getGenderSign(), LocalPlayer::imitateOutfit(), and SocialPlayersTab::updateAvatar().
std::string Being::getGenderSign | ( | ) | const |
Definition at line 2547 of file being.cpp.
References _, Gender::FEMALE, getGender(), BadgeDrawType::Hide, Gender::MALE, mAway, mInactive, mShop, mShowBadges, mShowGender, mShowPlayersStatus, mType, and ActorType::Player.
Referenced by getGenderSignWithSpace(), and showName().
std::string Being::getGenderSignWithSpace | ( | ) | const |
Definition at line 2538 of file being.cpp.
References getGenderSign(), and restrict.
Referenced by BeingPopup::show(), and PopupMenu::showPopup().
|
inline |
Definition at line 800 of file being.h.
References mGoodStatus.
Referenced by PlayerRelationsManager::isGoodName().
|
inline |
Definition at line 1087 of file being.h.
References mGroupId.
Referenced by PopupMenu::initPopup(), GroupDb::isAllowCommand(), MiniStatusWindow::mouseMoved(), BeingPopup::show(), ChatWindow::showGMTab(), and StatusWindow::updateLevelLabel().
Guild * Being::getGuild | ( | ) | const |
Returns a pointer to the specified guild that the being is in.
Definition at line 1280 of file being.cpp.
References mGuilds.
Referenced by LocalPlayer::checkNewName(), and updateColors().
const Guild * Being::getGuild | ( | const int | id | ) | const |
Returns a pointer to the specified guild that the being is in.
Definition at line 1271 of file being.cpp.
References anonymous_namespace{badgesdb.cpp}::mGuilds.
const Guild * Being::getGuild | ( | const std::string & | guildName | ) | const |
Returns a pointer to the specified guild that the being is in.
Definition at line 1258 of file being.cpp.
References FOR_EACH, guild, anonymous_namespace{badgesdb.cpp}::mGuilds, and restrict.
Referenced by ActorManager::addChar(), PopupMenu::addSocialMenu(), SocialGuildTab::buildCounter(), SocialGuildTab2::buildCounter(), Minimap::draw2(), NotifyManager::getGuildTab(), PopupMenu::handleLink(), Actions::outString(), outStringNormal(), SocialWindow::postInit(), WhoIsOnline::setNeutralColor(), PopupMenu::showChangePos(), PopupMenu::showChatPopup(), PopupMenu::showPlayerPopup(), PopupMenu::showPopup(), updateColors(), updateGuild(), SocialWindow::updateGuildCounter(), and ChatWindow::updateOnline().
|
inline |
Definition at line 259 of file being.h.
References mGuildName.
Referenced by addToCache(), Minimap::draw2(), TargetDebugTab::logic(), BeingPopup::show(), and PopupMenu::showPlayerGMCommands().
|
inline |
Returns all guilds the being is in.
Definition at line 306 of file being.h.
References anonymous_namespace{badgesdb.cpp}::mGuilds.
|
inline |
Definition at line 883 of file being.h.
References mHairColor.
Referenced by ActorManager::cloneBeing().
|
inlinevirtual |
Returns the vertical size of the current base sprite of the being.
Reimplemented from ActorSprite.
Definition at line 536 of file being.h.
References DEFAULT_BEING_HEIGHT, and CompoundSprite::getHeight().
|
static |
Definition at line 870 of file being.cpp.
References BLOCK_END, BLOCK_START, AttackType::CRITICAL, data, effectManager, getDefaultEffectId(), Configuration::getIntValue(), SkillDialog::getSkillDataByLevel(), Actions::info(), AttackType::MISS, ActorType::Monster, paths, ActorType::Player, restrict, AttackType::SKILL, skillDialog, and AttackType::SKILLMISS.
|
inline |
Definition at line 893 of file being.h.
References Cursor::CURSOR_POINTER, BeingInfo::getHoverCursor(), and mInfo.
|
inline |
Definition at line 759 of file being.h.
References mHP.
Referenced by TmwAthena::BeingRecv::processBeingMove(), TmwAthena::BeingRecv::processBeingVisible(), and BeingPopup::show().
|
inline |
Definition at line 409 of file being.h.
References mInfo.
Referenced by ActorManager::findBeingByPixel(), ActorManager::findBeingsByPixel(), ActorManager::findNearestLivingBeing(), Ea::BeingRecv::processBeingRemove(), and PopupMenu::showPopup().
|
inline |
Definition at line 743 of file being.h.
References mIp.
Referenced by addToCache(), and SocialPlayersTab::updateAvatar().
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented in LocalPlayer.
Definition at line 974 of file being.h.
References mLastAttackX.
Referenced by updateBotDirection().
|
inlinevirtual |
Reimplemented in LocalPlayer.
Definition at line 977 of file being.h.
References mLastAttackY.
Referenced by updateBotDirection().
|
inlinevirtual |
Reimplemented in LocalPlayer.
Definition at line 604 of file being.h.
References mLevel.
Referenced by addToCache(), LocalPlayer::checkNewName(), WhoIsOnline::loadWebList(), TargetDebugTab::logic(), EAthena::GuildRecv::processGuildMemberList(), BeingPopup::show(), showName(), and SocialPlayersTab::updateAvatar().
|
inline |
Definition at line 922 of file being.h.
References mLook.
Referenced by TmwAthena::BeingRecv::processBeingChangeLookContinue(), and EAthena::BeingRecv::processBeingChangeLookContinue().
|
inline |
|
inline |
|
inline |
|
inline |
std::string Being::getMoveAction | ( | ) | const |
Definition at line 1437 of file being.cpp.
References BlockMask::AIR, SpriteAction::FLY(), Map::getBlockMask(), ActorSprite::mHorseId, Actor::mMap, SpriteAction::MOVE(), mX, mY, SpriteAction::RIDE(), SpriteAction::SWIM(), and BlockMask::WATER.
|
inline |
|
inline |
Returns the name of the being.
Definition at line 232 of file being.h.
References mName.
Referenced by CharSelectDialog::action(), PlayerPostDeathListener::action(), ChatWindow::addWhisper(), ChatWindow::addWhisperTab(), EAthena::ChatHandler::battleTalk(), GuildManager::chat(), EAthena::ClanHandler::chat(), EAthena::GuildHandler::chat(), EAthena::PartyHandler::chat(), ChatTab::chatLog(), ActorManager::cloneBeing(), ChatWindow::doPresent(), AvatarListBox::draw(), Minimap::draw2(), ActorManager::findBeingByName(), ActorManager::findMostDamagedPlayer(), ActorManager::findNearestByName(), ActorManager::findNearestLivingBeing(), ActorManager::getMobNames(), ActorManager::getPlayerNames(), ChatWindow::getWhisperTab(), WhisperTab::handleCommandStr(), WhisperTab::handleInput(), PopupMenu::handleLink(), WhoIsOnline::handleLink(), PlayerRelationsManager::hasPermission(), ActorManager::heal(), PopupMenu::isAllowOtherCommand(), PlayerRelationsManager::isGoodName(), EAthena::PartyHandler::kick(), TargetDebugTab::logic(), outStringNormal(), SpellManager::parseCommand(), ChatWindow::parseGlobalsFilter(), ChatWindow::parseHighlights(), NpcDialog::postInit(), ActorManager::printBeingsToChat(), EAthena::ChatRecv::processBeingChat(), TmwAthena::ChatRecv::processBeingChat(), Ea::BeingRecv::processBeingRemove(), TmwAthena::BeingRecv::processBeingSelfEffect(), EAthena::BeingRecv::processBeingSpecialEffect(), EAthena::FamilyRecv::processCallPartner(), EAthena::CharServerRecv::processCharCharacters(), EAthena::CharServerRecv::processCharLogin(), TmwAthena::CharServerRecv::processCharLogin(), EAthena::ChatRecv::processChatRoomLeave(), EAthena::ChatRecv::processColorChat(), EAthena::GuildRecv::processGuildExpulsionContinue(), EAthena::GuildRecv::processGuildLeave(), EAthena::PlayerRecv::processKilledBy(), Ea::ChatRecv::processMVPEffect(), Ea::BeingRecv::processNameResponse(), EAthena::BeingRecv::processNameResponse2(), EAthena::BeingRecv::processNameResponseTitle(), EAthena::PartyRecv::processPartyInfo(), TmwAthena::PartyRecv::processPartyInfo(), TmwAthena::PartyRecv::processPartyInvited(), replaceVars(), ChatWindow::resortChatLog(), Gm::runCharCommand(), AvatarListBox::safeDraw(), CharSelectDialog::selectByName(), EAthena::Mail2Handler::sendMail(), WhoIsOnline::setNeutralColor(), PlayerRelationsManager::setRelation(), BeingPopup::show(), PopupMenu::showChatPopup(), PopupMenu::showPlayerGMCommands(), PopupMenu::showPlayerPopup(), PopupMenu::showPopup(), Actions::splitWhisper(), StatusWindow::StatusWindow(), EAthena::ChatHandler::talk(), TmwAthena::ChatHandler::talk(), CharacterDisplay::update(), GuildManager::updateList(), ActorManager::updatePlayerColors(), ActorManager::updatePlayerGuild(), and ActorManager::updatePlayerNames().
|
inline |
|
inlinevirtual |
Get the number of layers used to draw the being
Reimplemented from Actor.
Definition at line 377 of file being.h.
References CompoundSprite::getNumberOfLayers().
Referenced by LocalPlayer::imitateOutfit().
|
protected |
Calculates the offset in the given directions. If walking in direction 'neg' the value is negated.
Definition at line 2467 of file being.cpp.
References get_elapsed_time(), Map::getTileHeight(), Map::getTileWidth(), BeingDirection::LEFT, mAction, mActionTime, mapTileSize, mDirection, Actor::mMap, BeingAction::MOVE, mSpeed, and BeingDirection::RIGHT.
Referenced by logic().
|
inline |
|
inline |
|
inline |
Definition at line 330 of file being.h.
References mParty.
Referenced by PopupMenu::addParty(), PopupMenu::addPartyName(), PopupMenu::addSocialMenu(), SocialPartyTab::buildCounter(), Minimap::draw2(), PartyTab::getAutoCompleteList(), SocialWindow::postInit(), EAthena::FamilyRecv::processAskForChild(), Ea::BeingRecv::processNameResponse(), EAthena::BeingRecv::processNameResponse2(), EAthena::BeingRecv::processNameResponseTitle(), TmwAthena::BeingRecv::processPlayerMove(), TmwAthena::BeingRecv::processPlayerUpdate1(), TmwAthena::BeingRecv::processPlayerUpdate2(), replaceVars(), WhoIsOnline::setNeutralColor(), PopupMenu::showChatPopup(), PopupMenu::showPlayerGMCommands(), PopupMenu::showPlayerPopup(), updateColors(), ChatWindow::updateOnline(), and SocialWindow::updateParty().
|
inline |
Definition at line 255 of file being.h.
References mPartyName.
Referenced by addToCache(), PopupMenu::handleLink(), TargetDebugTab::logic(), BeingPopup::show(), PopupMenu::showPlayerGMCommands(), and PopupMenu::showPopup().
|
inline |
|
inline |
Definition at line 749 of file being.h.
References mPvpRank.
Referenced by addToCache(), and BeingPopup::show().
|
inline |
Definition at line 861 of file being.h.
References mRaceName.
Referenced by TargetDebugTab::logic(), and StatusWindow::StatusWindow().
|
inline |
Definition at line 610 of file being.h.
References mReachable.
Referenced by LocalPlayer::isReachable().
|
inline |
|
inline |
std::string Being::getSitAction | ( | ) | const |
Return sprite sit action for current environment.
Definition at line 1419 of file being.cpp.
References BlockMask::AIR, Map::getBlockMask(), BlockMask::GROUNDTOP, ActorSprite::mHorseId, Actor::mMap, mX, mY, SpriteAction::SIT(), SpriteAction::SITRIDE(), SpriteAction::SITSKY(), SpriteAction::SITTOP(), SpriteAction::SITWATER(), and BlockMask::WATER.
|
inlinevirtual |
Returns the pixel Y coordinate of the actor for sorting only.
Reimplemented from Actor.
Definition at line 961 of file being.h.
References CAST_S32, anonymous_namespace{mrand.cpp}::mPos, mSortOffsetY, and Actor::mYDiff.
|
inline |
ItemColor Being::getSpriteColor | ( | const int | slot | ) | const |
Definition at line 4910 of file being.cpp.
References CAST_SIZE, and ItemColor_one.
Referenced by ActorManager::cloneBeing().
|
inline |
Returns the direction the being is facing.
Definition at line 511 of file being.h.
References mSpriteDirection.
int Being::getSpriteID | ( | const int | slot | ) | const |
Definition at line 4894 of file being.cpp.
References CAST_SIZE.
Referenced by ActorManager::cloneBeing(), and EAthena::BeingRecv::processBeingChangeLookContinue().
const BeingSlot & Being::getSpriteSlot | ( | const int | slot | ) | const |
std::string Being::getStandAction | ( | ) | const |
Definition at line 1530 of file being.cpp.
References BlockMask::AIR, SpriteAction::DEAD(), SpriteAction::DEADSKY(), SpriteAction::DEADWATER(), Ea::GameRecv::mMap, SpriteAction::STAND(), SpriteAction::STANDRIDE(), SpriteAction::STANDSKY(), SpriteAction::STANDWATER(), and BlockMask::WATER.
|
inline |
Definition at line 400 of file being.h.
References mSubType.
Referenced by PopupMenu::addBeingMenu(), QuestsWindow::addEffect(), EAthena::NpcHandler::buy(), ActorManager::cloneBeing(), ItemSoundManager::getSoundEffect(), LocalPlayer::imitateOutfit(), TargetDebugTab::logic(), NpcDialog::postInit(), ActorManager::printBeingsToChat(), PopupMenu::showChatPopup(), PopupMenu::showPopup(), EAthena::NpcHandler::talk(), and ActorManager::updateEffects().
|
inline |
|
virtual |
Returns the required size of a target cursor for this being.
Reimplemented from ActorSprite.
Definition at line 518 of file being.cpp.
References BeingInfo::getTargetCursorSize(), mInfo, and TargetCursorSize::SMALL.
|
inlinevirtual |
Reimplemented from ActorSprite.
Definition at line 415 of file being.h.
References BeingInfo::getTargetOffsetX(), and mInfo.
|
inlinevirtual |
Reimplemented from ActorSprite.
Definition at line 422 of file being.h.
References BeingInfo::getTargetOffsetY(), and mInfo.
|
inline |
Definition at line 1082 of file being.h.
References mTeamId.
Referenced by addToCache(), and ActorManager::findNearestPvpPlayer().
|
inline |
|
inlinevirtual |
Returns the tile x coord
Reimplemented from Actor.
Definition at line 168 of file being.h.
References mX.
Referenced by ActorManager::cloneBeing(), CrazyMoves::crazyMove8(), Actions::findBeing(), ActorManager::findMostDamagedPlayer(), ActorManager::findNearestByName(), ActorManager::findNearestLivingBeing(), ActorManager::findNearestPvpPlayer(), ActorManager::findPortalByTile(), EventsManager::handleEvents(), PopupMenu::handleLink(), MapDebugTab::logic(), TargetDebugTab::logic(), ItemSoundManager::playSfx(), SoundManager::playSfx(), ActorManager::printBeingsToChat(), EAthena::BeingRecv::processBeingMove(), Ea::BeingRecv::processNameResponse(), EAthena::BeingRecv::processNameResponseTitle(), Ea::PlayerRecv::processPlayerWarp(), EAthena::BeingRecv::processSkillCastingContinue(), and SkillDialog::useSkillTarget().
|
inlinevirtual |
Returns the tile y coord
Reimplemented from Actor.
Definition at line 174 of file being.h.
References mY.
Referenced by ActorManager::cloneBeing(), CrazyMoves::crazyMove8(), Actions::findBeing(), ActorManager::findMostDamagedPlayer(), ActorManager::findNearestByName(), ActorManager::findNearestLivingBeing(), ActorManager::findNearestPvpPlayer(), ActorManager::findPortalByTile(), EventsManager::handleEvents(), PopupMenu::handleLink(), MapDebugTab::logic(), TargetDebugTab::logic(), ItemSoundManager::playSfx(), SoundManager::playSfx(), ActorManager::printBeingsToChat(), EAthena::BeingRecv::processBeingMove(), Ea::BeingRecv::processNameResponse(), EAthena::BeingRecv::processNameResponseTitle(), Ea::PlayerRecv::processPlayerWarp(), EAthena::BeingRecv::processSkillCastingContinue(), and SkillDialog::useSkillTarget().
|
inlinevirtual |
Returns the type of the ActorSprite.
Reimplemented from ActorSprite.
Definition at line 116 of file being.h.
References mType.
Referenced by LocalPlayer::attack(), LocalPlayer::attack2(), LocalPlayer::checkNewName(), Minimap::draw2(), ActorManager::findBeingByName(), ActorManager::findBeingByPixel(), ActorManager::findNearestByName(), ActorManager::findNearestLivingBeing(), ActorManager::getMobNames(), ActorManager::getPlayerNames(), PlayerRelationsManager::hasPermission(), ActorManager::heal(), SpellManager::invoke(), LocalPlayer::logic(), FindBeingFunctor::operator()(), Ea::BeingRecv::processBeingAction(), EAthena::BeingRecv::processBeingAction2(), TmwAthena::BeingRecv::processBeingChangeLookContinue(), EAthena::BeingRecv::processBeingChangeLookContinue(), EAthena::ChatRecv::processBeingChat(), TmwAthena::ChatRecv::processBeingChat(), Ea::BeingRecv::processBeingEmotion(), EAthena::BeingRecv::processBeingMove(), TmwAthena::BeingRecv::processBeingMove(), EAthena::BeingRecv::processBeingMove2(), TmwAthena::BeingRecv::processBeingMove2(), Ea::BeingRecv::processBeingRemove(), TmwAthena::BeingRecv::processBeingSelfEffect(), EAthena::BeingRecv::processBeingSpawn(), EAthena::BeingRecv::processBeingSpecialEffect(), EAthena::BeingRecv::processBeingVisible(), TmwAthena::BeingRecv::processBeingVisible(), Ea::BeingRecv::processNameResponse(), EAthena::BeingRecv::processNameResponse2(), EAthena::BeingRecv::processNameResponseTitle(), TmwAthena::PartyRecv::processPartyInvited(), Ea::PartyRecv::processPartyLeave(), TmwAthena::BeingRecv::processPlayerMove(), replaceVars(), LocalPlayer::setTarget(), BeingPopup::show(), PopupMenu::showChatPopup(), PopupMenu::showPopup(), PlayerRelationsManager::signalUpdate(), ActorManager::updatePlayerColors(), ActorManager::updatePlayerGuild(), ActorManager::updatePlayerNames(), and ActorManager::validateBeing().
|
inline |
Gets the walk speed in pixels per second.
Definition at line 458 of file being.h.
References mWalkSpeed.
Referenced by LocalPlayer::LocalPlayer().
std::string Being::getWeaponAttackAction | ( | const ItemInfo *const | weapon | ) | const |
Definition at line 1452 of file being.cpp.
References BlockMask::AIR, Ea::GameRecv::mMap, and BlockMask::WATER.
|
inlinevirtual |
Returns the horizontal size of the current base sprite of the being.
Reimplemented from ActorSprite.
Definition at line 530 of file being.h.
References DEFAULT_BEING_WIDTH, and CompoundSprite::getWidth().
void Being::handleAttack | ( | Being *const | victim, |
const int | damage, | ||
const int | attackId | ||
) |
Handles an attack of another being by this being.
victim | the victim being |
damage | the amount of damage dealt (0 means miss) |
attackId | the attack id |
Definition at line 963 of file being.cpp.
References BeingAction::ATTACK, BLOCK_END, BLOCK_START, ItemDB::get(), Net::getNetworkType(), ItemSoundEvent::HIT, Actions::info(), localPlayer, ItemSoundEvent::MISS, ActorType::Player, BeingAction::SIT, BeingAction::STAND, tick_time, ServerType::TMWATHENA, and toInt.
Referenced by Ea::BeingRecv::processBeingAction(), and EAthena::BeingRecv::processBeingAction2().
void Being::handleSkill | ( | Being *const | victim, |
const int | damage, | ||
const int | skillId, | ||
const int | skillLevel | ||
) |
Definition at line 1050 of file being.cpp.
References BeingAction::ATTACK, SkillType::Attack, data, effectManager, Configuration::getIntValue(), Net::getNetworkType(), SkillDialog::getSkill(), SkillType::Ground, ItemSoundEvent::HIT, localPlayer, ItemSoundEvent::MISS, paths, ActorType::Player, restrict, BeingAction::SIT, Actions::skill(), skillDialog, BeingAction::STAND, tick_time, ServerType::TMWATHENA, and EffectManager::triggerDefault().
Referenced by EAthena::BeingRecv::processSkillAutoCast(), EAthena::BeingRecv::processSkillDamage(), TmwAthena::BeingRecv::processSkillDamage(), and Ea::BeingRecv::processSkillNoDamage().
void Being::handleSkillCasting | ( | Being *const | victim, |
const int | skillId, | ||
const int | skillLevel | ||
) |
Definition at line 1025 of file being.cpp.
References BeingAction::CAST, data, effectManager, Configuration::getIntValue(), SkillDialog::getSkillDataByLevel(), paths, restrict, skillDialog, and EffectManager::triggerDefault().
Referenced by EAthena::BeingRecv::processSkillCastingContinue().
|
inline |
|
inlinestatic |
Definition at line 941 of file being.h.
References Gender::FEMALE, and Gender::MALE.
Referenced by RegisterDialog::action(), CharCreateDialog::CharCreateDialog(), TmwAthena::BeingRecv::processBeingMove(), TmwAthena::BeingRecv::processBeingVisible(), EAthena::GuildRecv::processGuildMemberList(), EAthena::GuildRecv::processGuildMemberLogin(), EAthena::LoginRecv::processLoginData(), TmwAthena::LoginRecv::processLoginData(), TmwAthena::PlayerRecv::processOnlineList(), TmwAthena::BeingRecv::processPlayerMove(), TmwAthena::BeingRecv::processPlayerUpdate1(), TmwAthena::BeingRecv::processPlayerUpdate2(), EAthena::CharServerRecv::readPlayerData(), TmwAthena::CharServerRecv::readPlayerData(), and EAthena::setBasicFields().
|
inline |
Definition at line 828 of file being.h.
References mAdvanced.
Referenced by addToCache(), and BeingPopup::show().
|
inline |
Returns whether this being is still alive.
Definition at line 488 of file being.h.
References BeingAction::DEAD, and mAction.
Referenced by ActorManager::findBeingsByPixel(), ActorManager::findMostDamagedPlayer(), ActorManager::findNearestPvpPlayer(), ActorManager::heal(), ActorManager::itenplz(), logic(), LocalPlayer::logic(), LocalPlayer::magicAttack(), FindBeingFunctor::operator()(), EAthena::BeingRecv::processBeingMove(), TmwAthena::BeingRecv::processBeingMove(), EAthena::BeingRecv::processBeingSpawn(), EAthena::BeingRecv::processBeingVisible(), TmwAthena::BeingRecv::processBeingVisible(), InputManager::updateConditionMask(), and ActorManager::validateBeing().
bool Being::isBuyShopEnabled | ( | ) | const |
Definition at line 5351 of file being.cpp.
References Net::getNetworkType(), mBuyBoard, mShop, and ServerType::TMWATHENA.
Referenced by PopupMenu::addBuySell().
|
inline |
Whether or not this player is a GM.
Definition at line 659 of file being.h.
References mIsGM.
Referenced by PopupMenu::addGmCommands(), ChatWindow::ChatWindow(), Minimap::draw2(), PopupMenu::isAllowCommand(), GroupDb::isAllowCommand(), PopupMenu::isAllowOtherCommand(), MiniStatusWindow::mouseMoved(), and PopupMenu::showGMPopup().
|
inline |
Definition at line 321 of file being.h.
References mParty.
Referenced by PopupMenu::addParty(), PopupMenu::addPartyName(), Minimap::draw2(), EAthena::PlayerRecv::processPlayerHeal(), replaceVars(), WhoIsOnline::setNeutralColor(), EAthena::PlayerHandler::setStat(), TmwAthena::PlayerHandler::setStat(), PopupMenu::showChatPopup(), PopupMenu::showPlayerGMCommands(), and PopupMenu::showPlayerPopup().
bool Being::isSellShopEnabled | ( | ) | const |
Definition at line 5357 of file being.cpp.
References Net::getNetworkType(), mSellBoard, mShop, and ServerType::TMWATHENA.
Referenced by PopupMenu::addBuySell().
|
static |
Definition at line 4734 of file being.cpp.
References ActorType::Avatar, ActorType::Elemental, Files::existsLocal(), ActorType::FloorItem, ActorType::Homunculus, Files::loadTextFileLocal(), ActorType::Mercenary, ActorType::Monster, ActorType::Npc, Settings::npcsDir, pathJoin(), ActorType::Pet, ActorType::Player, ActorType::Portal, settings, ActorType::SkillUnit, stringToHexPath(), ActorType::Unknown, and Settings::usersDir.
Referenced by PopupMenu::handleLink(), and updateComment().
|
virtual |
Performs being logic.
Reimplemented from ActorSprite.
Reimplemented in LocalPlayer.
Definition at line 1834 of file being.cpp.
References A_UNLIKELY, actorManager, BeingAction::ATTACK, BLOCK_END, BLOCK_START, botLogic(), BeingAction::CAST, CAST_S32, BeingAction::DEAD, delete2, ActorManager::destroy(), BeingDirection::DOWN, for_each_badges, for_each_horses, gameHandler, get_elapsed_time(), get_elapsed_time1(), CompoundSprite::getFrameCount(), getOffset(), ActorType::Homunculus, BeingAction::HURT, isAlive(), CastingEffect::isTerminated(), AnimatedSprite::isTerminated(), BeingDirection::LEFT, localPlayer, ActorSprite::logic(), mAction, mActionTime, mAnimationEffect, mapTileSize, mAttackSpeed, mBadges, mCastEndTime, mCastingEffect, mDownHorseSprites, mEmotionSprite, mEmotionTime, ActorType::Mercenary, MILLISECONDS_IN_A_TICK, mNeedPosUpdate, mNextSound, mOldHeight, BeingAction::MOVE, mOwner, mPixelOffsetY, mPreStandTime, mSortOffsetY, mSpeechTime, mSpeed, mText, mType, mUpHorseSprites, mX, mY, nextTile(), ActorType::Player, SoundManager::playSfx(), BeingAction::PRESTAND, Net::GameHandler::removeDeadBeings(), restrict, BeingDirection::RIGHT, setAction(), setPixelPositionF(), BeingAction::SIT, NextSoundInfo::sound, soundManager, BeingAction::SPAWN, BeingAction::STAND, tick_time, NextSoundInfo::time, BeingDirection::UP, CastingEffect::update(), AnimatedSprite::update(), NextSoundInfo::x, and NextSoundInfo::y.
Referenced by LocalPlayer::logic(), CharCreateDialog::logic(), NpcDialog::logic(), and NpcDialog::showAvatar().
|
protected |
Definition at line 2192 of file being.cpp.
References blockWalkMask, getBlockWalkMask(), Map::getWalk(), ActorType::Homunculus, homunculusHandler, mercenaryHandler, Actor::mMap, Net::HomunculusHandler::move(), Net::MercenaryHandler::move(), mOwner, mType, mX, mY, and updateBotDirection().
Referenced by botLogic(), and updateBotFollow().
|
virtual |
Makes this being take the next tile of its path.
Reimplemented in LocalPlayer.
Definition at line 1782 of file being.cpp.
References calcDirection(), Map::getBlockMask(), getBlockWalkMask(), Map::getHeightOffset(), Map::getWalk(), mAction, mActionTime, mFixedOffsetY, Actor::mMap, mNeedPosUpdate, mOldHeight, BeingAction::MOVE, mPath, mPixelOffsetY, mPreStandTime, mReachable, mSpeed, mType, mUseDiagonal, mWalkSpeed, mX, mY, ActorType::Player, BeingAction::PRESTAND, Reachable::REACH_NO, Reachable::REACH_UNKNOWN, setAction(), setDirection(), BeingAction::STAND, tick_time, Position::x, and Position::y.
Referenced by logic(), and LocalPlayer::nextTile().
|
virtual |
Called when an option changed. The config listener will have to be registered to the option name first.
Implements ConfigListener.
Reimplemented in LocalPlayer.
Definition at line 2523 of file being.cpp.
References config, Configuration::getIntValue(), ActorType::Player, and VisibleName::Show.
void Being::playSfx | ( | const SoundInfo & | sound, |
Being *const | being, | ||
const bool | main, | ||
const int | x, | ||
const int | y | ||
) | const |
Definition at line 4967 of file being.cpp.
References BLOCK_END, BLOCK_START, main(), SoundManager::playSfx(), soundManager, tick_time, x, and y.
|
protected |
Definition at line 289 of file being.cpp.
References Configuration::addListener(), ActorType::Avatar, config, ActorType::Elemental, ActorType::FloorItem, Configuration::getIntValue(), VisibleName::Hide, ActorType::Homunculus, ActorType::Mercenary, mGotComment, ActorType::Monster, mType, ActorType::Npc, ActorType::Pet, ActorType::Player, ActorType::Portal, reReadConfig(), setMap(), setShowName(), setSubtype(), VisibleName::Show, ActorType::SkillUnit, ActorType::Unknown, updateColors(), and updatePercentHP().
Referenced by createBeing(), and LocalPlayer::LocalPlayer().
void Being::recalcSpritesOrder | ( | ) |
Definition at line 4359 of file being.cpp.
References CAST_S32, CAST_U32, charServerHandler, BeingAction::DEAD, FOR_EACH, FOR_EACHP, ItemDB::get(), Net::CharServerHandler::hairSprite(), Actions::info(), mAction, ItemInfo::mDrawPriority, mEnableReorderSprites, mSlots, mSpriteDirection, mSpriteDraw, mSpriteHide, mSpriteRemap, CompoundSprite::mSprites, reportTrue, restrict, searchSlotValue(), searchSlotValueItr(), setHairTempSprite(), setTempSprite(), and BeingSlot::spriteId.
Referenced by EAthena::BeingRecv::applyPlayerAction(), TmwAthena::BeingRecv::applyPlayerAction(), LocalPlayer::playerDeath(), and Ea::BeingRecv::processBeingRemove().
void Being::recreateItemParticles | ( | ) |
Definition at line 5163 of file being.cpp.
References ParticleEngine::addEffect(), ActorSprite::controlCustomParticle(), FOR_EACH, ActorSprite::mChildParticleEffects, mSpriteParticles, particleEngine, ParticleList::removeLocally(), and restrict.
Referenced by Game::changeMap().
void Being::removeAfkEffect | ( | ) |
Definition at line 4923 of file being.cpp.
References removeSpecialEffect().
Referenced by GameModifiers::changeAwayMode(), and updateAwayEffect().
|
protected |
Definition at line 5037 of file being.cpp.
References FOR_EACH, and mSpriteParticles.
Referenced by ~Being().
void Being::removeGuild | ( | const int | id | ) |
Removers a guild from the being.
Definition at line 1248 of file being.cpp.
References localPlayer, anonymous_namespace{badgesdb.cpp}::mGuilds, SocialWindow::removeTab(), and socialWindow.
Referenced by EAthena::GuildRecv::processGuildLeave(), EAthena::GuildRecv::processGuildLeave2(), and Guild::removeFromMembers().
void Being::removeHorse | ( | ) |
Definition at line 5404 of file being.cpp.
References delete_all(), mDownHorseSprites, and mUpHorseSprites.
Referenced by ~Being().
|
protected |
void Being::removeSpecialEffect | ( | ) |
Definition at line 4941 of file being.cpp.
References delete2, effectManager, mAnimationEffect, ActorSprite::mChildParticleEffects, mSpecialParticle, and ParticleList::removeLocally().
Referenced by removeAfkEffect(), and ActorManager::updateEffects().
|
protected |
|
static |
Definition at line 3431 of file being.cpp.
References BLOCK_END, BLOCK_START, config, cur_time, fromBool, Configuration::getBoolValue(), Configuration::getIntValue(), mAwayEffect, mConfLineLim, mDrawHotKeys, mEnableReorderSprites, mHideErased, mHighlightMapPortals, mHighlightMonsterAttackRange, mLowTraffic, mMoveNames, mShowBadges, mShowBattleEvents, mShowGender, mShowLevel, mShowMobHP, mShowOwnHP, mShowPlayersStatus, mSpeechType, mUpdateConfigTime, mUseDiagonal, mVisibleNamePos, and paths.
Referenced by postInit(), and Game::slowLogic().
void Being::resetCounters | ( | ) |
Definition at line 4350 of file being.cpp.
References cur_time, mAttackTime, mMoveTime, mOtherTime, mTalkTime, and mTestTime.
|
static |
Definition at line 4771 of file being.cpp.
References ActorType::Avatar, ActorType::Elemental, ActorType::FloorItem, ActorType::Homunculus, ActorType::Mercenary, ActorType::Monster, ActorType::Npc, Settings::npcsDir, pathJoin(), ActorType::Pet, ActorType::Player, ActorType::Portal, Files::saveTextFile(), settings, ActorType::SkillUnit, stringToHexPath(), ActorType::Unknown, and Settings::usersDir.
Referenced by PlayerListener::action().
|
protected |
Definition at line 4650 of file being.cpp.
References CAST_S32, and CompoundSprite::getNumberOfLayers().
Referenced by recalcSpritesOrder().
|
staticprotected |
void Being::serverRemove | ( | ) |
Definition at line 5363 of file being.cpp.
References ActorSprite::mTrickDead.
Referenced by Ea::BeingRecv::processBeingRemove().
|
virtual |
Sets the current action.
Reimplemented in LocalPlayer.
Definition at line 1554 of file being.cpp.
References BeingAction::ATTACK, BeingAction::CAST, CAST_U32, BeingAction::DEAD, ItemSoundEvent::DIE, effectManager, ParticleEngine::enabled, SpriteAction::FLY(), for_each_badges, for_each_horses, SkillDialog::getSkill(), BeingAction::HURT, ItemSoundEvent::HURT, Actions::info(), SpriteAction::INVALID, Logger::log(), logger, ActorType::Monster, SpriteAction::MOVE(), BeingAction::MOVE, ItemSoundEvent::MOVE, ActorType::Npc, AnimatedSprite::play(), BeingAction::PRESTAND, restrict, BeingAction::SIT, ItemSoundEvent::SIT, SpriteAction::SITTOP(), ItemSoundEvent::SITTOP, skillDialog, ActorType::SkillUnit, BeingAction::SPAWN, ItemSoundEvent::SPAWN, BeingAction::STAND, SpriteAction::SWIM(), tick_time, Catch::toString(), and EffectManager::triggerDirection().
Referenced by EAthena::BeingRecv::applyPlayerAction(), TmwAthena::BeingRecv::applyPlayerAction(), ActorManager::cloneBeing(), logic(), nextTile(), Ea::BeingRecv::processBeingAction(), EAthena::BeingRecv::processBeingAction2(), EAthena::BeingRecv::processBeingMove(), TmwAthena::BeingRecv::processBeingMove(), TmwAthena::BeingRecv::processBeingMove2(), Ea::BeingRecv::processBeingMove3(), Ea::BeingRecv::processBeingRemove(), EAthena::BeingRecv::processBeingResurrect(), TmwAthena::BeingRecv::processBeingResurrect(), EAthena::BeingRecv::processBeingSlide(), EAthena::BeingRecv::processBeingSpawn(), EAthena::BeingRecv::processBeingVisible(), TmwAthena::BeingRecv::processBeingVisible(), EAthena::BeingRecv::processGraffiti(), Ea::BeingRecv::processPlayerStop(), EAthena::BeingRecv::processSkillCastingContinue(), EAthena::BeingRecv::processSkillEntry(), LocalPlayer::setAction(), NpcDialog::setAvatarAction(), stopCast(), updatePercentHP(), and CharCreateDialog::updatePlayer().
|
inline |
Set the current action time.
Definition at line 135 of file being.h.
References mActionTime.
Referenced by EAthena::BeingRecv::processBeingVisible(), TmwAthena::BeingRecv::processBeingVisible(), TmwAthena::BeingRecv::processPlayerMove(), TmwAthena::BeingRecv::processPlayerUpdate1(), and TmwAthena::BeingRecv::processPlayerUpdate2().
|
inline |
Definition at line 831 of file being.h.
References addToCache(), and mAdvanced.
Referenced by OnlinePlayer::setText().
|
inline |
Definition at line 1052 of file being.h.
References mAreaSize.
Referenced by EAthena::NpcRecv::processArea().
|
inline |
Definition at line 770 of file being.h.
References mAttackDelay.
Referenced by Ea::BeingRecv::processBeingAction(), and EAthena::BeingRecv::processBeingAction2().
|
inline |
Sets the attack range.
Definition at line 843 of file being.h.
References mAttackRange.
Referenced by TmwAthena::BeingRecv::processBeingMove(), TmwAthena::BeingRecv::processBeingVisible(), EAthena::BeingRecv::processMobInfo(), Ea::InventoryRecv::processPlayerAttackRange(), and PlayerInfo::setMercenaryBeing().
|
inline |
Sets the attack speed.
Definition at line 464 of file being.h.
References mAttackSpeed.
Referenced by EAthena::PlayerHandler::setStat(), and TmwAthena::PlayerHandler::setStat().
|
inline |
Definition at line 709 of file being.h.
References cur_time, and mAttackTime.
Referenced by Ea::BeingRecv::processBeingAction(), and EAthena::BeingRecv::processBeingAction2().
void Being::setBuyBoard | ( | const std::string & | text | ) |
Definition at line 5336 of file being.cpp.
Referenced by EAthena::BuyingStoreRecv::processBuyingStoreHideBoard(), and EAthena::BuyingStoreRecv::processBuyingStoreShowBoard().
|
inline |
Definition at line 149 of file being.h.
References mCachedX, and mCachedY.
Referenced by EAthena::BeingRecv::processBeingMove(), TmwAthena::BeingRecv::processBeingMove(), and EAthena::BeingRecv::processBeingMove2().
void Being::setChat | ( | ChatObject *const | obj | ) |
Definition at line 5322 of file being.cpp.
Referenced by EAthena::ChatRecv::processChatDisplay(), EAthena::ChatRecv::processChatRoomCreateAck(), EAthena::ChatRecv::processChatRoomJoinAck(), EAthena::ChatRecv::processChatRoomLeave(), and ActorManager::removeRoom().
void Being::setClanName | ( | const std::string & | name | ) |
|
inline |
Definition at line 815 of file being.h.
References mComment.
Referenced by PlayerListener::action().
|
inline |
Definition at line 1025 of file being.h.
References mCreatorId.
Referenced by EAthena::BeingRecv::processGraffiti(), and EAthena::BeingRecv::processSkillEntry().
|
inline |
|
inline |
Definition at line 596 of file being.h.
References mDamageTaken.
Referenced by SocialPlayersTab::resetDamage().
|
protected |
Definition at line 2639 of file being.cpp.
References UserPalette::getColor(), UserColorId::TEAM1, UserColorId::TEAM2, UserColorId::TEAM3, and userPalette.
Referenced by updateColors().
void Being::setDestination | ( | const int | dstX, |
const int | dstY | ||
) |
Creates a path for the being from current position to ex and ey
Definition at line 540 of file being.cpp.
References Ea::GameRecv::mMap.
Referenced by EAthena::BeingRecv::processBeingMove(), TmwAthena::BeingRecv::processBeingMove(), EAthena::BeingRecv::processBeingMove2(), TmwAthena::BeingRecv::processBeingMove2(), TmwAthena::BeingRecv::processPlayerMove(), LocalPlayer::setDestination(), and LocalPlayer::startWalking().
|
virtual |
Sets the current direction.
Definition at line 1690 of file being.cpp.
References BeingDirection::DOWN, SpriteDirection::DOWN, SpriteDirection::DOWNLEFT, SpriteDirection::DOWNRIGHT, for_each_badges, for_each_horses, BeingDirection::LEFT, SpriteDirection::LEFT, BeingDirection::RIGHT, SpriteDirection::RIGHT, CompoundSprite::setSpriteDirection(), AnimatedSprite::setSpriteDirection(), BeingDirection::UP, SpriteDirection::UP, SpriteDirection::UPLEFT, and SpriteDirection::UPRIGHT.
Referenced by LocalPlayer::attack(), ActorManager::cloneBeing(), CrazyMoves::crazyMove1(), CrazyMoves::crazyMove2(), CrazyMoves::crazyMove3(), CrazyMoves::crazyMoveAd(), LocalPlayer::imitateDirection(), nextTile(), EAthena::BeingRecv::processBeingChangeDirection(), TmwAthena::BeingRecv::processBeingChangeDirection(), EAthena::BeingRecv::processBeingFakeName(), EAthena::BeingRecv::processBeingMove(), EAthena::BeingRecv::processBeingSpawn(), EAthena::BeingRecv::processBeingVisible(), TmwAthena::BeingRecv::processBeingVisible(), TmwAthena::BeingRecv::processPlayerMove(), TmwAthena::BeingRecv::processPlayerUpdate1(), TmwAthena::BeingRecv::processPlayerUpdate2(), NpcDialog::setAvatarDirection(), LocalPlayer::setDestination(), LocalPlayer::startWalking(), and CharCreateDialog::updatePlayer().
|
inline |
Definition at line 502 of file being.h.
References mDirectionDelayed.
Referenced by TmwAthena::BeingRecv::processPlayerMove().
|
inline |
Definition at line 555 of file being.h.
References mDistance.
Referenced by LocalPlayer::isReachable().
void Being::setEmote | ( | const uint8_t | emotion, |
const int | emote_time | ||
) |
Set the Emoticon type and time displayed above the being.
Definition at line 4829 of file being.cpp.
References AnimatedSprite::clone(), delete2, effectManager, EmoteDB::get2(), EmoteDB::getLast(), Actions::info(), restrict, BeingFlag::SPECIAL, and EffectManager::trigger().
Referenced by Ea::BeingRecv::processBeingEmotion().
|
inline |
|
virtual |
Sets the gender of this being.
Definition at line 3581 of file being.cpp.
References beingEquipmentWindow, CAST_U32, charServerHandler, BeingSlot::color, combineDye(), AnimatedSprite::delayedLoad(), ItemDB::get(), Configuration::getStringValue(), Actions::info(), pathJoin(), paths, restrict, CompoundSprite::setSprite(), BeingSlot::spriteId, and EquipmentWindow::updateBeing().
Referenced by CharCreateDialog::action(), CharCreateDialog::CharCreateDialog(), ActorManager::cloneBeing(), TmwAthena::BeingRecv::processBeingMove(), TmwAthena::BeingRecv::processBeingVisible(), TmwAthena::BeingRecv::processPlayerMove(), TmwAthena::BeingRecv::processPlayerUpdate1(), TmwAthena::BeingRecv::processPlayerUpdate2(), EAthena::CharServerRecv::readPlayerData(), TmwAthena::CharServerRecv::readPlayerData(), CharCreateDialog::setDefaultGender(), and TmwAthena::BeingRecv::setServerGender().
void Being::setGM | ( | const bool | gm | ) |
Triggers whether or not to show the name as a GM name.
Definition at line 3666 of file being.cpp.
References Actions::gm().
|
inline |
Definition at line 803 of file being.h.
References mGoodStatus.
Referenced by PlayerRelationsManager::isGoodName(), and ActorManager::updatePlayerNames().
|
virtual |
Reimplemented in LocalPlayer.
Definition at line 5587 of file being.cpp.
References GroupDb::getHighlightName(), Actions::gm(), mGroupId, mIsGM, showGmBadge(), and updateColors().
Referenced by EAthena::BeingRecv::processBeingAttrs(), TmwAthena::setGm(), and LocalPlayer::setGroupId().
void Being::setGuild | ( | Guild *const | guild | ) |
Definition at line 1354 of file being.cpp.
References SocialWindow::addTab(), guild, localPlayer, SocialWindow::removeTab(), restrict, and socialWindow.
Referenced by EAthena::GuildRecv::processGuildPositionInfo(), TmwAthena::BeingRecv::processPlayerMove(), TmwAthena::BeingRecv::processPlayerUpdate1(), TmwAthena::BeingRecv::processPlayerUpdate2(), and updateGuild().
void Being::setGuildName | ( | const std::string & | name | ) |
Sets the name of the primary guild the being is in. Shown in BeingPopup (eventually).
Definition at line 1196 of file being.cpp.
Referenced by GuildManager::afterRemove(), GuildManager::process(), EAthena::GuildRecv::processGuildMemberList(), EAthena::GuildRecv::processGuildPositionInfo(), EAthena::BeingRecv::processPlayerGuilPartyInfo(), TmwAthena::BeingRecv::processPlayerGuilPartyInfo(), EAthena::BeingRecv::processPlayerGuilPartyInfo2(), updateFromCache(), and updateGuild().
void Being::setGuildPos | ( | const std::string & | pos | ) |
Definition at line 1233 of file being.cpp.
Referenced by EAthena::GuildRecv::processGuildSetPosition(), EAthena::BeingRecv::processPlayerGuilPartyInfo(), TmwAthena::BeingRecv::processPlayerGuilPartyInfo(), and EAthena::BeingRecv::processPlayerGuilPartyInfo2().
|
inline |
void Being::setHairColor | ( | const unsigned int | slot, |
const ItemColor | color | ||
) |
Definition at line 3389 of file being.cpp.
References ItemDB::get(), and BeingSlot::spriteId.
Referenced by ActorManager::cloneBeing(), TmwAthena::BeingRecv::processBeingChangeLookContinue(), EAthena::BeingRecv::processBeingChangeLookContinue(), TmwAthena::BeingRecv::processBeingMove(), TmwAthena::BeingRecv::processBeingVisible(), TmwAthena::BeingRecv::processPlayerMove(), TmwAthena::BeingRecv::processPlayerUpdate1(), TmwAthena::BeingRecv::processPlayerUpdate2(), EAthena::CharServerRecv::readPlayerData(), and TmwAthena::CharServerRecv::readPlayerData().
void Being::setHairColorSpriteID | ( | const unsigned int | slot, |
const int | id | ||
) |
Definition at line 3291 of file being.cpp.
References CAST_U32, charServerHandler, BeingSlot::color, and Net::CharServerHandler::maxSprite().
Referenced by EAthena::BeingRecv::processBeingChangeLookContinue().
void Being::setHairStyle | ( | const unsigned int | slot, |
const int | id | ||
) |
Definition at line 3372 of file being.cpp.
References ItemDB::get().
Referenced by TmwAthena::BeingRecv::processBeingChangeLookContinue().
void Being::setHairTempSprite | ( | const unsigned int | slot, |
const int | id | ||
) |
Definition at line 3218 of file being.cpp.
References CAST_U32, charServerHandler, combineDye(), AnimatedSprite::delayedLoad(), ItemDB::get(), ItemColorManager::getColorFromCards(), Configuration::getStringValue(), Actions::info(), CardsList::isEmpty(), ItemColor_one, Net::CharServerHandler::maxSprite(), pathJoin(), paths, restrict, and CompoundSprite::setSprite().
Referenced by recalcSpritesOrder().
void Being::setHorse | ( | const int | horseId | ) |
Definition at line 5425 of file being.cpp.
References FOR_EACH, HorseDB::get(), AnimatedSprite::load(), AnimatedSprite::play(), restrict, and AnimatedSprite::setSpriteDirection().
Referenced by EAthena::BeingRecv::processBeingAttrs().
void Being::setHP | ( | const int | hp | ) |
Definition at line 4334 of file being.cpp.
References ActorType::Monster.
Referenced by EAthena::BeingRecv::processBeingHp(), EAthena::BeingRecv::processBeingMove(), TmwAthena::BeingRecv::processBeingMove(), EAthena::BeingRecv::processBeingSpawn(), EAthena::BeingRecv::processBeingVisible(), TmwAthena::BeingRecv::processBeingVisible(), and EAthena::BeingRecv::processMonsterHp().
|
inline |
Definition at line 746 of file being.h.
References mIp.
Referenced by TmwAthena::BeingRecv::processIpResponse(), and updateFromCache().
|
inline |
Definition at line 1031 of file being.h.
References mKarma.
Referenced by EAthena::BeingRecv::processBeingMove(), TmwAthena::BeingRecv::processBeingMove(), EAthena::BeingRecv::processBeingSpawn(), EAthena::BeingRecv::processBeingVisible(), TmwAthena::BeingRecv::processBeingVisible(), TmwAthena::BeingRecv::processPlayerMove(), EAthena::BeingRecv::processPlayerStatusChange(), TmwAthena::BeingRecv::processPlayerUpdate1(), TmwAthena::BeingRecv::processPlayerUpdate2(), EAthena::CharServerRecv::readPlayerData(), and TmwAthena::CharServerRecv::readPlayerData().
void Being::setLanguageId | ( | const int | lang | ) |
Definition at line 5555 of file being.cpp.
References delete2, LanguageDb::getIcon(), Configuration::getStringValue(), BadgeIndex::Lang, AnimatedSprite::load(), pathJoin(), and paths.
Referenced by EAthena::BeingRecv::processBeingAttrs().
|
inline |
Definition at line 601 of file being.h.
References mLevel.
Referenced by LocalPlayer::checkNewName(), WhoIsOnline::loadWebList(), ActorManager::parseLevels(), EAthena::BeingRecv::processBeingMove(), EAthena::BeingRecv::processBeingSpawn(), EAthena::BeingRecv::processBeingVisible(), EAthena::GuildRecv::processGuildMemberList(), TmwAthena::BeingRecv::processPlayerMove(), EAthena::BeingRecv::processPlayerStatusChange2(), TmwAthena::BeingRecv::processPlayerUpdate1(), TmwAthena::BeingRecv::processPlayerUpdate2(), EAthena::BeingRecv::processSkillEntry(), PlayerInfo::setMercenaryBeing(), PlayerInfo::setPetBeing(), EAthena::PlayerHandler::setStat(), TmwAthena::PlayerHandler::setStat(), and updateFromCache().
void Being::setLook | ( | const uint16_t | look | ) |
Definition at line 5004 of file being.cpp.
References ActorType::Player.
Referenced by TmwAthena::BeingRecv::processBeingChangeLookContinue(), and EAthena::BeingRecv::processBeingChangeLookContinue().
|
inline |
Definition at line 1037 of file being.h.
References mManner.
Referenced by EAthena::BeingRecv::processBeingMove(), TmwAthena::BeingRecv::processBeingMove(), EAthena::BeingRecv::processBeingSpawn(), EAthena::BeingRecv::processBeingStatUpdate1(), EAthena::BeingRecv::processBeingVisible(), TmwAthena::BeingRecv::processBeingVisible(), TmwAthena::BeingRecv::processPlayerMove(), TmwAthena::BeingRecv::processPlayerUpdate1(), TmwAthena::BeingRecv::processPlayerUpdate2(), EAthena::CharServerRecv::readPlayerData(), and TmwAthena::CharServerRecv::readPlayerData().
|
virtual |
Reimplemented from ActorSprite.
Reimplemented in LocalPlayer.
Definition at line 5023 of file being.cpp.
References delete2, Ea::GameRecv::mMap, and ActorSprite::setMap().
Referenced by postInit(), and LocalPlayer::setMap().
|
inline |
void Being::setMaxHP | ( | const int | hp | ) |
Definition at line 4343 of file being.cpp.
Referenced by EAthena::BeingRecv::processBeingHp(), EAthena::BeingRecv::processBeingMove(), TmwAthena::BeingRecv::processBeingMove(), EAthena::BeingRecv::processBeingSpawn(), EAthena::BeingRecv::processBeingVisible(), TmwAthena::BeingRecv::processBeingVisible(), and EAthena::BeingRecv::processMonsterHp().
|
inline |
|
inline |
Definition at line 706 of file being.h.
References cur_time, and mMoveTime.
Referenced by Ea::BeingRecv::processBeingAction(), EAthena::BeingRecv::processBeingAction2(), EAthena::BeingRecv::processBeingMove(), TmwAthena::BeingRecv::processBeingMove(), EAthena::BeingRecv::processBeingMove2(), TmwAthena::BeingRecv::processBeingMove2(), EAthena::BeingRecv::processBeingSpawn(), EAthena::BeingRecv::processBeingVisible(), TmwAthena::BeingRecv::processBeingVisible(), and TmwAthena::BeingRecv::processPlayerMove().
void Being::setName | ( | const std::string & | name | ) |
Sets the name for the being.
name | The name that should appear. |
Definition at line 1136 of file being.cpp.
References ActorType::Npc, ActorType::Player, and ActorType::Portal.
Referenced by ActorManager::cloneBeing(), EAthena::BeingRecv::processBeingSpawn(), EAthena::BeingRecv::processBeingVisible(), TmwAthena::BeingRecv::processBeingVisible(), EAthena::BeingRecv::processGraffiti(), Ea::BeingRecv::processNameResponse(), EAthena::BeingRecv::processNameResponse2(), EAthena::BeingRecv::processNameResponseTitle(), EAthena::BeingRecv::processPlayerGuilPartyInfo(), EAthena::BeingRecv::processPlayerGuilPartyInfo2(), EAthena::CharServerRecv::readPlayerData(), TmwAthena::CharServerRecv::readPlayerData(), PlayerInfo::setHomunculusBeing(), PlayerInfo::setMercenaryBeing(), CharSelectDialog::setName(), PlayerInfo::setPetBeing(), updateFromCache(), and SocialNavigationTab::updateList().
|
inline |
Definition at line 718 of file being.h.
References cur_time, and mOtherTime.
Referenced by TmwAthena::BeingRecv::processBeingChangeLookContinue(), EAthena::BeingRecv::processBeingChangeLookContinue(), and Ea::BeingRecv::processBeingEmotion().
|
inline |
Definition at line 911 of file being.h.
References mOwner.
Referenced by PlayerInfo::setHomunculusBeing(), PlayerInfo::setMercenaryBeing(), and PlayerInfo::setPetBeing().
void Being::setParty | ( | Party *const | party | ) |
Definition at line 1307 of file being.cpp.
References SocialWindow::addTab(), localPlayer, party, Party::removeMember(), SocialWindow::removeTab(), and socialWindow.
Referenced by EAthena::PartyRecv::processPartyInfo(), TmwAthena::PartyRecv::processPartyInfo(), Ea::PartyRecv::processPartyLeave(), TmwAthena::BeingRecv::processPlayerMove(), TmwAthena::BeingRecv::processPlayerUpdate1(), TmwAthena::BeingRecv::processPlayerUpdate2(), and Party::removeFromMembers().
void Being::setPartyName | ( | const std::string & | name | ) |
Sets the name of the party the being is in. Shown in BeingPopup.
Definition at line 5246 of file being.cpp.
Referenced by EAthena::PartyRecv::processPartyInfo(), TmwAthena::PartyRecv::processPartyInfo(), Ea::PartyRecv::processPartyLeave(), EAthena::BeingRecv::processPlayerGuilPartyInfo(), TmwAthena::BeingRecv::processPlayerGuilPartyInfo(), EAthena::BeingRecv::processPlayerGuilPartyInfo2(), and updateFromCache().
void Being::setPath | ( | const Path & | path | ) |
Sets the new path for this being.
Definition at line 559 of file being.cpp.
References BeingAction::DEAD, BeingAction::MOVE, and tick_time.
Referenced by Ea::BeingRecv::processBeingMove3().
|
inline |
Overloaded method provided for convenience.
Definition at line 522 of file being.h.
References setPixelPositionF(), NextSoundInfo::x, and NextSoundInfo::y.
|
virtual |
Sets the pixel position of this actor.
Reimplemented from Actor.
Definition at line 526 of file being.cpp.
References CAST_S32, and Actor::setPixelPositionF().
Referenced by logic(), and setPixelPositionF().
|
inline |
Definition at line 752 of file being.h.
References mPvpRank.
Referenced by EAthena::BeingRecv::processPvpSet(), TmwAthena::BeingRecv::processPvpSet(), and updateFromCache().
|
inline |
|
inline |
Definition at line 607 of file being.h.
References mReachable.
Referenced by LocalPlayer::isReachable().
|
virtual |
Reimplemented from ActorSprite.
Definition at line 5412 of file being.cpp.
References Net::ServerFeatures::haveExtendedRiding(), and serverFeatures.
void Being::setSellBoard | ( | const std::string & | text | ) |
Definition at line 5328 of file being.cpp.
Referenced by EAthena::VendingRecv::processHideBoard(), and EAthena::VendingRecv::processShowBoard().
void Being::setShowName | ( | const bool | doShowName | ) |
Definition at line 1166 of file being.cpp.
References delete2.
Referenced by LocalPlayer::LocalPlayer(), LocalPlayer::optionChanged(), postInit(), EAthena::BeingRecv::processGraffiti(), and LocalPlayer::setTarget().
void Being::setSpeech | ( | const std::string & | text | ) |
Puts a "speech balloon" above this being for the specified amount of time.
text | The text that should appear. |
time | The amount of time the text should stay in milliseconds. |
Definition at line 572 of file being.cpp.
References CAST_S32, Graphics::CENTER, Theme::getColor(), UserPalette::getColor(), mapTileSize, BeingSpeech::NAME_IN_BUBBLE, UserColorId::PARTICLE, removeColors(), SPEECH_MAX_TIME, SPEECH_MIN_TIME, SPEECH_TIME, Speech_true, anonymous_namespace{stringutils.cpp}::start, MailMessageType::Text, BeingSpeech::TEXT_OVERHEAD, theme, Catch::trim(), and userPalette.
Referenced by NotifyManager::notify(), EAthena::ChatRecv::processBeingChat(), TmwAthena::ChatRecv::processBeingChat(), TmwAthena::ChatRecv::processChatContinue(), and EAthena::ChatRecv::processChatContinue().
void Being::setSpiritBalls | ( | const unsigned int | balls | ) |
Definition at line 5474 of file being.cpp.
References ParticleEngine::enabled, Configuration::getIntValue(), and paths.
Referenced by EAthena::BeingRecv::processSpiritBalls().
void Being::setSprite | ( | const unsigned int | slot, |
const int | id, | ||
std::string | color, | ||
ItemColor | colorId | ||
) |
void Being::setSpriteCards | ( | const unsigned int | slot, |
const int | id, | ||
const CardsList & | cards | ||
) |
Definition at line 3048 of file being.cpp.
References beingEquipmentWindow, BeingSlot::cardsId, CAST_U32, charServerHandler, BeingSlot::color, BeingSlot::colorId, combineDye(), AnimatedSprite::delayedLoad(), ItemDB::get(), ItemColorManager::getColorFromCards(), Configuration::getStringValue(), Actions::info(), ItemColor_one, Net::CharServerHandler::maxSprite(), pathJoin(), paths, restrict, CompoundSprite::setSprite(), BeingSlot::spriteId, STD_MOVE, and EquipmentWindow::updateBeing().
Referenced by CharCreateDialog::CharCreateDialog(), and EAthena::BeingRecv::processBeingChangeLookContinue().
void Being::setSpriteColor | ( | const unsigned int | slot, |
const int | id, | ||
const std::string & | color | ||
) |
Definition at line 2890 of file being.cpp.
References beingEquipmentWindow, BeingSlot::cardsId, CAST_U32, charServerHandler, BeingSlot::color, BeingSlot::colorId, combineDye(), AnimatedSprite::delayedLoad(), ItemDB::get(), Configuration::getStringValue(), Actions::info(), ItemColor_one, Net::CharServerHandler::maxSprite(), pathJoin(), paths, restrict, CompoundSprite::setSprite(), BeingSlot::spriteId, and EquipmentWindow::updateBeing().
Referenced by ActorManager::cloneBeing(), EAthena::BeingRecv::processBeingChangeLookContinue(), EAthena::CharServerRecv::readPlayerData(), TmwAthena::CharServerRecv::readPlayerData(), and CharCreateDialog::updateHair().
void Being::setSpriteColor | ( | const unsigned int | slot, |
const std::string & | color | ||
) |
Definition at line 3309 of file being.cpp.
References beingEquipmentWindow, CAST_U32, charServerHandler, BeingSlot::color, BeingSlot::colorId, combineDye(), AnimatedSprite::delayedLoad(), ItemDB::get(), Configuration::getStringValue(), Actions::info(), ItemColor_one, Net::CharServerHandler::maxSprite(), pathJoin(), paths, restrict, CompoundSprite::setSprite(), BeingSlot::spriteId, and EquipmentWindow::updateBeing().
void Being::setSpriteColorId | ( | const unsigned int | slot, |
const int | id, | ||
ItemColor | colorId | ||
) |
Definition at line 2967 of file being.cpp.
References beingEquipmentWindow, BeingSlot::cardsId, CAST_U32, charServerHandler, BeingSlot::color, BeingSlot::colorId, combineDye(), AnimatedSprite::delayedLoad(), ItemDB::get(), Configuration::getStringValue(), Actions::info(), Net::CharServerHandler::maxSprite(), pathJoin(), paths, restrict, CompoundSprite::setSprite(), BeingSlot::spriteId, STD_MOVE, and EquipmentWindow::updateBeing().
Referenced by ActorManager::cloneBeing().
void Being::setSpriteId | ( | const unsigned int | slot, |
const int | id | ||
) |
Definition at line 2789 of file being.cpp.
References beingEquipmentWindow, BeingSlot::cardsId, CAST_U32, charServerHandler, BeingSlot::color, BeingSlot::colorId, AnimatedSprite::delayedLoad(), ItemDB::get(), Configuration::getStringValue(), Actions::info(), ItemColor_one, Net::CharServerHandler::maxSprite(), pathJoin(), paths, restrict, CompoundSprite::setSprite(), BeingSlot::spriteId, and EquipmentWindow::updateBeing().
Referenced by TmwAthena::BeingRecv::processBeingChangeLookContinue(), EAthena::BeingRecv::processBeingChangeLookContinue(), EAthena::CharServerRecv::readPlayerData(), and TmwAthena::CharServerRecv::readPlayerData().
void Being::setSpriteSlot | ( | const unsigned int | slot, |
const BeingSlot & | beingSlot | ||
) |
void Being::setState | ( | const uint8_t | state | ) |
Definition at line 4803 of file being.cpp.
References BeingFlag::AWAY, Actions::away(), Net::getNetworkType(), BeingFlag::INACTIVE, BeingFlag::SHOP, and ServerType::TMWATHENA.
Referenced by OnlinePlayer::setText().
void Being::setSubtype | ( | const BeingTypeId | subtype, |
const uint16_t | look | ||
) |
Set Being's subtype (mostly for view for monsters and NPCs)
Definition at line 371 of file being.cpp.
References _, ActorType::Avatar, Net::CharServerHandler::baseSprite(), CAST_S32, charServerHandler, ActorType::Elemental, ItemDB::exists(), ActorType::FloorItem, ForceDisplay_false, ForceDisplay_true, fromInt, AvatarDB::get(), ElementalDb::get(), HomunculusDB::get(), MercenaryDB::get(), MonsterDB::get(), NPCDB::get(), PETDB::get(), SkillUnitDb::get(), ItemDB::get(), ActorType::Homunculus, Actions::info(), DisplayType::Item, ActorType::Mercenary, ActorType::Monster, ActorType::Npc, ActorType::Pet, ActorType::Player, ActorType::Portal, reportAlways, restrict, ActorType::SkillUnit, toInt, and ActorType::Unknown.
Referenced by postInit(), TmwAthena::BeingRecv::processBeingChangeLookContinue(), EAthena::BeingRecv::processBeingChangeLookContinue(), EAthena::BeingRecv::processBeingFakeName(), EAthena::BeingRecv::processBeingMove(), TmwAthena::BeingRecv::processBeingMove(), EAthena::BeingRecv::processBeingSpawn(), EAthena::BeingRecv::processBeingVisible(), TmwAthena::BeingRecv::processBeingVisible(), TmwAthena::BeingRecv::processPlayerMove(), TmwAthena::BeingRecv::processPlayerUpdate1(), TmwAthena::BeingRecv::processPlayerUpdate2(), EAthena::CharServerRecv::readPlayerData(), TmwAthena::CharServerRecv::readPlayerData(), and CharCreateDialog::updateLook().
|
inline |
Definition at line 712 of file being.h.
References cur_time, and mTalkTime.
Referenced by EAthena::ChatRecv::processBeingChat(), and TmwAthena::ChatRecv::processBeingChat().
void Being::setTeamId | ( | const uint16_t | teamId | ) |
Definition at line 5187 of file being.cpp.
Referenced by EAthena::BattleGroundRecv::processBattleEmblem2(), TmwAthena::BeingRecv::processPvpSet(), and updateFromCache().
void Being::setTempSprite | ( | const unsigned int | slot, |
const int | id | ||
) |
Definition at line 3143 of file being.cpp.
References BeingSlot::cardsId, CAST_U32, charServerHandler, BeingSlot::color, combineDye(), AnimatedSprite::delayedLoad(), ItemDB::get(), ItemColorManager::getColorFromCards(), Configuration::getStringValue(), Actions::info(), CardsList::isEmpty(), ItemColor_one, Net::CharServerHandler::maxSprite(), pathJoin(), paths, restrict, CompoundSprite::setSprite(), and BeingSlot::spriteId.
Referenced by recalcSpritesOrder().
|
inline |
|
virtual |
Sets the tile x and y coord
Reimplemented in LocalPlayer.
Definition at line 5010 of file being.cpp.
References Ea::GameRecv::mMap, x, and y.
Referenced by ActorManager::cloneBeing(), EAthena::BeingRecv::processBeingFakeName(), EAthena::BeingRecv::processBeingMove(), TmwAthena::BeingRecv::processBeingMove(), EAthena::BeingRecv::processBeingMove2(), TmwAthena::BeingRecv::processBeingMove2(), Ea::BeingRecv::processBeingMove3(), EAthena::BeingRecv::processBeingSlide(), EAthena::BeingRecv::processBeingSpawn(), EAthena::BeingRecv::processBeingVisible(), TmwAthena::BeingRecv::processBeingVisible(), EAthena::BeingRecv::processGraffiti(), TmwAthena::BeingRecv::processPlayerMove(), Ea::BeingRecv::processPlayerStop(), TmwAthena::BeingRecv::processPlayerUpdate1(), TmwAthena::BeingRecv::processPlayerUpdate2(), EAthena::BeingRecv::processSkillEntry(), and LocalPlayer::setTileCoords().
|
virtual |
|
inline |
Sets the walk speed in pixels per second.
Definition at line 452 of file being.h.
References mSpeed, and mWalkSpeed.
Referenced by EAthena::BeingRecv::processBeingMove(), TmwAthena::BeingRecv::processBeingMove(), Ea::BeingRecv::processBeingMove3(), EAthena::BeingRecv::processBeingSpawn(), EAthena::BeingRecv::processBeingVisible(), TmwAthena::BeingRecv::processBeingVisible(), TmwAthena::BeingRecv::processPlayerMove(), TmwAthena::BeingRecv::processPlayerUpdate1(), TmwAthena::BeingRecv::processPlayerUpdate2(), EAthena::PlayerHandler::setStat(), and TmwAthena::PlayerHandler::setStat().
void Being::setWeaponId | ( | const int | id | ) |
Definition at line 3135 of file being.cpp.
References ItemDB::get().
Referenced by TmwAthena::BeingRecv::processBeingChangeLookContinue(), EAthena::BeingRecv::processBeingChangeLookContinue(), TmwAthena::BeingRecv::processBeingMove(), TmwAthena::BeingRecv::processBeingVisible(), TmwAthena::BeingRecv::processPlayerMove(), TmwAthena::BeingRecv::processPlayerUpdate1(), TmwAthena::BeingRecv::processPlayerUpdate2(), EAthena::CharServerRecv::readPlayerData(), and TmwAthena::CharServerRecv::readPlayerData().
void Being::showAwayBadge | ( | const bool | show | ) |
Definition at line 5293 of file being.cpp.
References BadgeIndex::Away, delete2, Configuration::getStringValue(), BadgeDrawType::Hide, AnimatedSprite::load(), and paths.
Referenced by updateFromCache().
void Being::showBadges | ( | const bool | show | ) |
void Being::showClanBadge | ( | const bool | show | ) |
Definition at line 1206 of file being.cpp.
References BadgeIndex::Clan, delete2, BadgesDB::getClanBadge(), Configuration::getStringValue(), BadgeDrawType::Hide, AnimatedSprite::load(), and paths.
void Being::showGmBadge | ( | const bool | show | ) |
Definition at line 3646 of file being.cpp.
References delete2, GroupDb::getBadge(), GroupDb::getShowBadge(), Configuration::getStringValue(), BadgeIndex::Gm, BadgeDrawType::Hide, AnimatedSprite::load(), and paths.
Referenced by setGroupId().
void Being::showGuildBadge | ( | const bool | show | ) |
Definition at line 1179 of file being.cpp.
References delete2, BadgesDB::getGuildBadge(), Configuration::getStringValue(), BadgeIndex::Guild, BadgeDrawType::Hide, AnimatedSprite::load(), and paths.
void Being::showInactiveBadge | ( | const bool | show | ) |
Definition at line 5274 of file being.cpp.
References delete2, Configuration::getStringValue(), BadgeDrawType::Hide, BadgeIndex::Inactive, AnimatedSprite::load(), and paths.
Referenced by updateFromCache().
|
protected |
Definition at line 2578 of file being.cpp.
References boldFont, Graphics::CENTER, config, delete2, Relation::ERASED, Configuration::getBoolValue(), getDamageTaken(), getGenderSign(), getLevel(), BeingInfo::getNameOffsetX(), BeingInfo::getNameOffsetY(), PlayerRelationsManager::getRelation(), Gui::getSecureFont(), LocalPlayer::getTarget(), gui, PlayerRelationsManager::isGoodName(), localPlayer, mDispName, mHideErased, mInfo, mName, mNameColor, ActorType::Monster, Actor::mPixelX, Actor::mPixelY, mShowGender, mShowLevel, mType, ActorType::Player, playerRelations, Catch::toString(), and updateCoords().
Referenced by updateName().
void Being::showNameBadge | ( | const bool | show | ) |
Definition at line 1119 of file being.cpp.
References delete2, BadgesDB::getNameBadge(), Configuration::getStringValue(), BadgeDrawType::Hide, AnimatedSprite::load(), BadgeIndex::Name, and paths.
void Being::showPartyBadge | ( | const bool | show | ) |
Definition at line 5226 of file being.cpp.
References delete2, BadgesDB::getPartyBadge(), Configuration::getStringValue(), BadgeDrawType::Hide, AnimatedSprite::load(), BadgeIndex::Party, and paths.
void Being::showShopBadge | ( | const bool | show | ) |
Definition at line 5255 of file being.cpp.
References delete2, Configuration::getStringValue(), BadgeDrawType::Hide, AnimatedSprite::load(), paths, and BadgeIndex::Shop.
Referenced by updateFromCache().
void Being::showTeamBadge | ( | const bool | show | ) |
Definition at line 5197 of file being.cpp.
References delete2, Configuration::getStringValue(), BadgeDrawType::Hide, AnimatedSprite::load(), paths, strprintf(), and BadgeIndex::Team.
|
virtual |
Reimplemented from ActorSprite.
Definition at line 5522 of file being.cpp.
References BeingAction::CAST, mAction, setAction(), and BeingAction::STAND.
Referenced by EAthena::SkillRecv::processSkillFailed().
void Being::takeDamage | ( | Being *const | attacker, |
const int | amount, | ||
const AttackTypeT | type, | ||
const int | attackId, | ||
const int | level | ||
) |
Puts a damage bubble above this being.
attacker | the attacking being |
amount | the amount of damage recieved (0 means miss) |
type | the attack type |
attackId | the attack id |
level | the skill level |
Definition at line 667 of file being.cpp.
References _, ParticleEngine::addTextSplashEffect(), ChatWindow::battleChatLog(), BLOCK_END, BLOCK_START, ChatMsgType::BY_OTHER, ChatMsgType::BY_PLAYER, chatWindow, AttackType::CRITICAL, effectManager, AttackType::FLEE, UserPalette::getColor(), Gui::getInfoParticleFont(), gui, UserColorId::HIT_CRITICAL, UserColorId::HIT_LOCAL_PLAYER_CRITICAL, UserColorId::HIT_LOCAL_PLAYER_MISS, UserColorId::HIT_LOCAL_PLAYER_MONSTER, UserColorId::HIT_MONSTER_PLAYER, UserColorId::HIT_PLAYER_MONSTER, UserColorId::HIT_PLAYER_PLAYER, ActorType::Homunculus, ItemSoundEvent::HURT, IgnoreRecord_false, localPlayer, ActorType::Mercenary, AttackType::MISS, UserColorId::MISS, ActorType::Monster, particleEngine, ActorType::Pet, ActorType::Player, LocalPlayer::setLastHitFrom(), AttackType::SKILL, AttackType::SKILLMISS, ActorType::SkillUnit, socialWindow, strprintf(), Catch::toString(), EffectManager::trigger(), TryRemoveColors_true, SocialWindow::updateAvatar(), and userPalette.
Referenced by Ea::BeingRecv::processBeingAction(), EAthena::BeingRecv::processBeingAction2(), EAthena::BeingRecv::processSkillAutoCast(), EAthena::BeingRecv::processSkillDamage(), and TmwAthena::BeingRecv::processSkillDamage().
void Being::talkTo | ( | ) | const |
Definition at line 3675 of file being.cpp.
References Net::PlayerHandler::attack(), Keep_false, PacketLimiter::limitPackets(), ActorSprite::mId, npcHandler, PacketType::PACKET_ATTACK, PacketType::PACKET_NPC_TALK, playerHandler, and Net::NpcHandler::talk().
void Being::undressItemById | ( | const int | id | ) |
void Being::unSetSprite | ( | const unsigned int | slot | ) |
Definition at line 2861 of file being.cpp.
References beingEquipmentWindow, BeingSlot::cardsId, CAST_U32, charServerHandler, BeingSlot::color, BeingSlot::colorId, ItemColor_one, Net::CharServerHandler::maxSprite(), BeingSlot::spriteId, and EquipmentWindow::updateBeing().
Referenced by ActorManager::cloneBeing(), EAthena::CharServerRecv::readPlayerData(), TmwAthena::CharServerRecv::readPlayerData(), EAthena::BeingHandler::undress(), and TmwAthena::BeingHandler::undress().
void Being::updateAwayEffect | ( | ) |
Definition at line 4951 of file being.cpp.
References addAfkEffect(), mAway, and removeAfkEffect().
Referenced by updateFromCache().
|
protected |
|
protected |
Definition at line 2313 of file being.cpp.
References BadgeDrawType::Bottom, VisibleNamePos::Bottom, Gui::getFont(), Text::getHeight(), Text::getWidth(), Text::getX(), Text::getY(), gui, BadgeDrawType::Hide, mapTileSize, mBadgesCount, mBadgesX, mBadgesY, mDispName, Actor::mPixelX, Actor::mPixelY, mShowBadges, mVisibleNamePos, Settings::playerBadgeAtRightOffset, Settings::playerNameOffset, restrict, BadgeDrawType::Right, settings, and VisibleNamePos::Top.
Referenced by updateCoords().
|
protected |
Definition at line 2224 of file being.cpp.
References BeingAction::ATTACK, BeingAction::CAST, BeingAction::DEAD, BeingDirection::DOWN, BeingInfo::getAttackDirectionType(), getCurrentAction(), BeingInfo::getDeadDirectionType(), BeingInfo::getDirectionType(), getLastAttackX(), getLastAttackY(), BeingInfo::getSitDirectionType(), ActorType::Homunculus, homunculusHandler, BeingAction::HURT, BeingDirection::LEFT, mDirection, mercenaryHandler, mInfo, BeingAction::MOVE, mOwner, mType, mX, mY, BeingAction::PRESTAND, BeingDirection::RIGHT, Net::HomunculusHandler::setDirection(), Net::MercenaryHandler::setDirection(), BeingAction::SIT, BeingAction::SPAWN, BeingAction::STAND, and BeingDirection::UP.
Referenced by moveBotTo().
|
protected |
Definition at line 2153 of file being.cpp.
References botFixOffset(), BeingInfo::getFollowDist(), BeingInfo::getStartFollowDist(), mInfo, moveBotTo(), mX, and mY.
Referenced by botLogic().
void Being::updateColors | ( | ) |
Definition at line 2663 of file being.cpp.
References Relation::BLACKLISTED, Relation::DISREGARDED, UserColorId::DISREGARDED, UserColorId::ENEMY, Relation::ENEMY2, Relation::ERASED, UserColorId::ERASED, Relation::FRIEND, UserColorId::FRIEND, Theme::getColor(), UserPalette::getColor(), getGuild(), getParty(), PlayerRelationsManager::getRelation(), UserColorId::GM, UserColorId::GUILD, ActorType::Homunculus, UserColorId::HOMUNCULUS, Relation::IGNORED, UserColorId::IGNORED, localPlayer, mDispName, mEnemy, mErased, mIsGM, mName, mNameColor, ActorType::Monster, UserColorId::MONSTER, mParty, mTextColor, mType, ActorType::Npc, UserColorId::NPC, UserColorId::PARTY, UserColorId::PC, ActorType::Pet, UserColorId::PET, playerRelations, UserColorId::SELF, Text::setColor(), setDefaultNameColor(), ActorType::SkillUnit, UserColorId::SKILLUNIT, theme, and userPalette.
Referenced by postInit(), GuildManager::process(), Ea::BeingRecv::processNameResponse(), EAthena::BeingRecv::processNameResponse2(), EAthena::BeingRecv::processNameResponseTitle(), setGroupId(), PlayerRelationsManager::signalUpdate(), updateFromCache(), updateGuild(), and ActorManager::updatePlayerColors().
void Being::updateComment | ( | ) |
Definition at line 4725 of file being.cpp.
References loadComment(), mComment, mGotComment, mName, and mType.
Referenced by PopupMenu::handleLink(), and BeingPopup::show().
|
protectedvirtual |
Updates name's location.
Reimplemented in LocalPlayer.
Definition at line 2501 of file being.cpp.
References Text::adviseXY(), Text::getHeight(), BeingInfo::getNameOffsetX(), BeingInfo::getNameOffsetY(), mDispName, mInfo, mMoveNames, ActorType::Monster, Actor::mPixelX, Actor::mPixelY, mType, mVisibleNamePos, Settings::playerNameOffset, settings, VisibleNamePos::Top, and updateBadgesPosition().
Referenced by showName(), and LocalPlayer::updateCoords().
bool Being::updateFromCache | ( | ) |
Definition at line 3464 of file being.cpp.
References BeingFlag::AWAY, cur_time, getCacheEntry(), ActorSprite::getId(), Net::getNetworkType(), BeingFlag::INACTIVE, mAdvanced, mAway, mInactive, mShop, mTeamId, mType, ActorType::Player, restrict, serverFeatures, setGuildName(), setIp(), setLevel(), setName(), setPartyName(), setPvpRank(), setTeamId(), BeingFlag::SHOP, showAwayBadge(), showInactiveBadge(), showShopBadge(), ServerType::TMWATHENA, updateAwayEffect(), updateColors(), and updateName().
Referenced by ActorManager::createBeing().
void Being::updateGuild | ( | ) |
Definition at line 1333 of file being.cpp.
References clearGuilds(), getGuild(), guild, localPlayer, mName, restrict, setGuild(), setGuildName(), and updateColors().
Referenced by Ea::BeingRecv::processNameResponse(), EAthena::BeingRecv::processNameResponse2(), EAthena::BeingRecv::processNameResponseTitle(), and ActorManager::updatePlayerGuild().
void Being::updateHit | ( | const int | amount | ) |
void Being::updateName | ( | ) |
Definition at line 3425 of file being.cpp.
References mShowName, and showName().
Referenced by GameModifiers::changeAwayMode(), LocalPlayer::checkNewName(), EventsManager::handleActive(), WhoIsOnline::loadWebList(), EAthena::GuildRecv::processGuildMemberList(), EAthena::PlayerHandler::setStat(), TmwAthena::PlayerHandler::setStat(), LocalPlayer::setTarget(), Setup_Relations::updatedPlayer(), updateFromCache(), and ActorManager::updatePlayerNames().
void Being::updatePercentHP | ( | ) |
Definition at line 4876 of file being.cpp.
References BLOCK_END, BLOCK_START, mAction, mHP, mMaxHP, mNumber, setAction(), and CompoundSprite::updateNumber().
Referenced by postInit().
void Being::updateSprite | ( | const unsigned int | slot, |
const int | id, | ||
const std::string & | color | ||
) |
Definition at line 2771 of file being.cpp.
References CAST_U32, charServerHandler, and Net::CharServerHandler::maxSprite().
Referenced by TmwAthena::BeingRecv::processBeingMove(), TmwAthena::BeingRecv::processBeingVisible(), TmwAthena::BeingRecv::processPlayerMove(), TmwAthena::BeingRecv::processPlayerUpdate1(), and TmwAthena::BeingRecv::processPlayerUpdate2().
|
friend |
|
friend |
Definition at line 99 of file being.h.
Referenced by getEquipment().
|
friend |
|
protected |
Definition at line 1229 of file being.h.
Referenced by LocalPlayer::attack(), botLogic(), LocalPlayer::canMove(), ActorManager::findBeingByPixel(), getCurrentAction(), getOffset(), isAlive(), logic(), LocalPlayer::logic(), nextTile(), LocalPlayer::nextTile(), LocalPlayer::playerDeath(), recalcSpritesOrder(), LocalPlayer::setHome(), LocalPlayer::setWalkingDir(), LocalPlayer::specialMove(), LocalPlayer::startWalking(), LocalPlayer::stopAttack(), stopCast(), LocalPlayer::stopWalking(), LocalPlayer::toggleSit(), LocalPlayer::untarget(), updatePercentHP(), and LocalPlayer::updateSit().
|
protected |
Time spent in current action
Definition at line 1213 of file being.h.
Referenced by LocalPlayer::attack(), getActionTime(), getOffset(), logic(), nextTile(), and setActionTime().
|
protected |
Definition at line 1380 of file being.h.
Referenced by isAdvanced(), LocalPlayer::LocalPlayer(), setAdvanced(), and updateFromCache().
|
protected |
Definition at line 1386 of file being.h.
Referenced by getAllowNpcEquipment().
|
protected |
Definition at line 1175 of file being.h.
Referenced by logic(), removeSpecialEffect(), and ~Being().
|
protected |
Definition at line 1367 of file being.h.
Referenced by getAreaSize(), and setAreaSize().
|
protected |
Definition at line 1357 of file being.h.
Referenced by getAttackDelay(), and setAttackDelay().
|
protected |
Definition at line 1222 of file being.h.
Referenced by LocalPlayer::getAttackRange(), LocalPlayer::LocalPlayer(), LocalPlayer::moveToTarget(), and setAttackRange().
|
protected |
Attack speed
Definition at line 1218 of file being.h.
Referenced by getAttackSpeed(), logic(), and setAttackSpeed().
|
protected |
Definition at line 1353 of file being.h.
Referenced by getAttackTime(), resetCounters(), and setAttackTime().
|
protected |
Definition at line 1382 of file being.h.
Referenced by addToCache(), getGenderSign(), updateAwayEffect(), and updateFromCache().
|
staticprotected |
Definition at line 1349 of file being.h.
Referenced by addAfkEffect(), and reReadConfig().
|
protected |
|
protected |
Definition at line 1375 of file being.h.
Referenced by updateBadgesCount(), updateBadgesPosition(), and ~Being().
|
protected |
Definition at line 1370 of file being.h.
Referenced by updateBadgesPosition().
|
protected |
Definition at line 1371 of file being.h.
Referenced by updateBadgesPosition().
|
protected |
Definition at line 1385 of file being.h.
Referenced by botLogic(), disableBotAi(), and enableBotAi().
|
protected |
Definition at line 1304 of file being.h.
Referenced by getBuyBoard(), and isBuyShopEnabled().
|
protected |
Definition at line 1316 of file being.h.
Referenced by getCachedX(), and setCachedDestination().
|
protected |
Definition at line 1317 of file being.h.
Referenced by getCachedY(), and setCachedDestination().
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 1185 of file being.h.
Referenced by getClanName().
|
protected |
Definition at line 1303 of file being.h.
Referenced by getComment(), setComment(), and updateComment().
|
staticprotected |
Definition at line 1332 of file being.h.
Referenced by reReadConfig().
|
protected |
Definition at line 1372 of file being.h.
Referenced by getCreatorId(), and setCreatorId().
|
protected |
Definition at line 1360 of file being.h.
Referenced by getCriticalHit(), and setCriticalHit().
|
protected |
Definition at line 1324 of file being.h.
Referenced by getDamageTaken(), and setDamageTaken().
|
protected |
destination coordinates.
Definition at line 1201 of file being.h.
Referenced by calcDirection(), getDestination(), and LocalPlayer::setDestination().
|
protected |
Facing direction
Definition at line 1231 of file being.h.
Referenced by botFixOffset(), fixDirectionOffsets(), getDirection(), getOffset(), LocalPlayer::logic(), LocalPlayer::moveToHome(), LocalPlayer::pickUpItems(), LocalPlayer::setDestination(), LocalPlayer::setHome(), LocalPlayer::startWalking(), and updateBotDirection().
|
protected |
Facing direction
Definition at line 1232 of file being.h.
Referenced by getDirectionDelayed(), and setDirectionDelayed().
|
protected |
Holds a text object when the being displays it's name, 0 otherwise
Definition at line 1191 of file being.h.
Referenced by showName(), updateBadgesPosition(), updateColors(), updateCoords(), and ~Being().
|
protected |
Definition at line 1327 of file being.h.
Referenced by getDistance(), and setDistance().
|
protected |
Definition at line 1310 of file being.h.
Referenced by logic(), and removeHorse().
|
staticprotected |
Definition at line 1337 of file being.h.
Referenced by reReadConfig().
|
protected |
|
protected |
|
staticprotected |
Definition at line 1344 of file being.h.
Referenced by recalcSpritesOrder(), and reReadConfig().
|
protected |
Definition at line 1378 of file being.h.
Referenced by setEnemy(), and updateColors().
|
protected |
Engine-related infos about weapon.
Definition at line 1195 of file being.h.
Referenced by getEquippedWeapon().
|
protected |
Definition at line 1377 of file being.h.
Referenced by updateColors().
|
protected |
|
protected |
Definition at line 1321 of file being.h.
Referenced by nextTile().
|
protected |
Definition at line 1228 of file being.h.
Referenced by getGender().
|
protected |
Definition at line 1329 of file being.h.
Referenced by getGoodStatus(), and setGoodStatus().
|
protected |
Definition at line 1379 of file being.h.
Referenced by postInit(), and updateComment().
|
protected |
Definition at line 1221 of file being.h.
Referenced by getGroupId(), and setGroupId().
|
protected |
Definition at line 1184 of file being.h.
Referenced by getGuildName().
|
protected |
Definition at line 1210 of file being.h.
Referenced by clearGuilds(), and getGuild().
|
protected |
Definition at line 1376 of file being.h.
Referenced by getHairColor(), and setHairColor().
|
staticprotected |
Definition at line 1345 of file being.h.
Referenced by reReadConfig(), and showName().
|
staticprotected |
Definition at line 1334 of file being.h.
Referenced by reReadConfig().
|
staticprotected |
Definition at line 1335 of file being.h.
Referenced by reReadConfig().
|
protected |
Definition at line 1325 of file being.h.
Referenced by getHP(), and updatePercentHP().
|
protected |
Definition at line 1383 of file being.h.
Referenced by addToCache(), getGenderSign(), LocalPlayer::getHalfAway(), LocalPlayer::setHalfAway(), LocalPlayer::slowLogic(), updateFromCache(), and LocalPlayer::updateStatus().
|
protected |
Definition at line 1173 of file being.h.
Referenced by botFixOffset(), botLogic(), drawBeingCursor(), getBlockType(), getBlockWalkMask(), getHoverCursor(), getInfo(), getTargetCursorSize(), getTargetOffsetX(), getTargetOffsetY(), showName(), updateBotDirection(), updateBotFollow(), and updateCoords().
|
protected |
|
protected |
Definition at line 1235 of file being.h.
Referenced by isGM(), setGroupId(), LocalPlayer::setGroupId(), and updateColors().
|
protected |
Definition at line 1365 of file being.h.
Referenced by getKarma(), and setKarma().
|
protected |
Definition at line 1369 of file being.h.
Referenced by getLanguageId().
|
protected |
Definition at line 1223 of file being.h.
Referenced by getLastAttackX(), and LocalPlayer::getLastAttackX().
|
protected |
Definition at line 1224 of file being.h.
Referenced by getLastAttackY(), and LocalPlayer::getLastAttackY().
|
protected |
Definition at line 1220 of file being.h.
Referenced by LocalPlayer::attributeChanged(), getLevel(), LocalPlayer::LocalPlayer(), and setLevel().
|
staticprotected |
Definition at line 1336 of file being.h.
Referenced by addToCache(), and reReadConfig().
|
protected |
Definition at line 1366 of file being.h.
Referenced by getManner(), and setManner().
|
protected |
Definition at line 1359 of file being.h.
Referenced by getMaxHit(), and setMaxHit().
|
protected |
Definition at line 1326 of file being.h.
Referenced by getMaxHP(), and updatePercentHP().
|
protected |
Definition at line 1358 of file being.h.
Referenced by getMinHit(), and setMinHit().
|
staticprotected |
Definition at line 1346 of file being.h.
Referenced by reReadConfig(), and updateCoords().
|
protected |
Definition at line 1352 of file being.h.
Referenced by botLogic(), getMoveTime(), resetCounters(), and setMoveTime().
|
protected |
Name of being
Definition at line 1180 of file being.h.
Referenced by addToCache(), LocalPlayer::afkRespond(), LocalPlayer::checAttackPermissions(), LocalPlayer::checkNewName(), LocalPlayer::followMoveTo(), getName(), LocalPlayer::imitateAction(), LocalPlayer::imitateDirection(), LocalPlayer::imitateEmote(), LocalPlayer::imitateOutfit(), LocalPlayer::nextTile(), showName(), updateColors(), updateComment(), and updateGuild().
|
protected |
Definition at line 1192 of file being.h.
Referenced by LocalPlayer::LocalPlayer(), showName(), and updateColors().
|
protected |
Definition at line 1384 of file being.h.
Referenced by logic(), and nextTile().
NextSoundInfo Being::mNextSound |
|
protected |
Definition at line 1362 of file being.h.
Referenced by updatePercentHP().
|
protected |
Definition at line 1322 of file being.h.
Referenced by logic(), and nextTile().
|
protected |
Definition at line 1355 of file being.h.
Referenced by getOtherTime(), resetCounters(), and setOtherTime().
|
protected |
Definition at line 1306 of file being.h.
Referenced by botFixOffset(), botLogic(), getOwner(), logic(), moveBotTo(), setOwner(), and updateBotDirection().
|
protected |
Definition at line 1211 of file being.h.
Referenced by getParty(), isInParty(), and updateColors().
|
protected |
Definition at line 1183 of file being.h.
Referenced by getPartyName().
|
protected |
Definition at line 1197 of file being.h.
Referenced by clearPath(), getPath(), nextTile(), LocalPlayer::nextTile(), and LocalPlayer::startWalking().
|
protected |
Definition at line 1319 of file being.h.
Referenced by logic(), and nextTile().
|
protected |
Definition at line 1226 of file being.h.
Referenced by logic(), and nextTile().
|
protected |
Definition at line 1361 of file being.h.
Referenced by getPvpRank(), and setPvpRank().
|
protected |
Definition at line 1182 of file being.h.
Referenced by getRaceName(), and setRaceName().
|
protected |
Definition at line 1328 of file being.h.
Referenced by getReachable(), nextTile(), and setReachable().
|
protected |
Definition at line 1305 of file being.h.
Referenced by getSellBoard(), and isSellShopEnabled().
|
protected |
Definition at line 1381 of file being.h.
Referenced by addToCache(), getGenderSign(), isBuyShopEnabled(), isSellShopEnabled(), and updateFromCache().
|
staticprotected |
Definition at line 1348 of file being.h.
Referenced by getGenderSign(), reReadConfig(), ActorManager::updateBadges(), and updateBadgesPosition().
|
staticprotected |
Definition at line 1338 of file being.h.
Referenced by reReadConfig().
|
staticprotected |
Definition at line 1341 of file being.h.
Referenced by getGenderSign(), reReadConfig(), and showName().
|
staticprotected |
Definition at line 1342 of file being.h.
Referenced by reReadConfig(), and showName().
|
staticprotected |
Definition at line 1339 of file being.h.
Referenced by reReadConfig().
|
protected |
Definition at line 1234 of file being.h.
Referenced by getShowName(), and updateName().
|
staticprotected |
Definition at line 1340 of file being.h.
Referenced by reReadConfig().
|
staticprotected |
Definition at line 1343 of file being.h.
Referenced by getGenderSign(), and reReadConfig().
|
protected |
Definition at line 1206 of file being.h.
Referenced by BeingEquipBackend::BeingEquipBackend(), dumpSprites(), recalcSpritesOrder(), and setSpriteSlot().
|
protected |
Definition at line 1318 of file being.h.
Referenced by getSortPixelY(), and logic().
|
protected |
Definition at line 1307 of file being.h.
Referenced by removeSpecialEffect().
|
protected |
Speech Bubble components
Definition at line 1290 of file being.h.
Referenced by createSpeechBubble(), and ~Being().
|
protected |
|
staticprotected |
Definition at line 1333 of file being.h.
Referenced by reReadConfig().
|
protected |
Definition at line 1298 of file being.h.
Referenced by getOffset(), logic(), nextTile(), and setWalkSpeed().
|
protected |
Definition at line 1363 of file being.h.
Referenced by getSpiritBalls().
|
protected |
|
protected |
Facing direction
Definition at line 1233 of file being.h.
Referenced by getSpriteDirection(), and recalcSpritesOrder().
|
protected |
Definition at line 1302 of file being.h.
Referenced by Being(), recalcSpritesOrder(), and ~Being().
|
protected |
Definition at line 1301 of file being.h.
Referenced by Being(), recalcSpritesOrder(), and ~Being().
|
protected |
Definition at line 1207 of file being.h.
Referenced by recreateItemParticles(), and removeAllItemsParticles().
|
protected |
Definition at line 1300 of file being.h.
Referenced by Being(), recalcSpritesOrder(), and ~Being().
|
protected |
Subtype (graphical view, basically)
Definition at line 1230 of file being.h.
Referenced by getSubType().
|
protected |
Definition at line 1354 of file being.h.
Referenced by getTalkTime(), resetCounters(), and setTalkTime().
|
protected |
Definition at line 1373 of file being.h.
Referenced by getTeamId(), and updateFromCache().
|
protected |
Definition at line 1356 of file being.h.
Referenced by getTestTime(), resetCounters(), and setTestTime().
|
protected |
|
protected |
Definition at line 1199 of file being.h.
Referenced by LocalPlayer::LocalPlayer(), and updateColors().
|
protected |
Definition at line 1287 of file being.h.
Referenced by botLogic(), canTalk(), getGenderSign(), getType(), logic(), moveBotTo(), nextTile(), postInit(), showName(), updateBotDirection(), updateColors(), updateComment(), updateCoords(), and updateFromCache().
|
staticprotected |
Definition at line 1331 of file being.h.
Referenced by reReadConfig().
|
protected |
Definition at line 1311 of file being.h.
Referenced by logic(), and removeHorse().
|
protected |
Definition at line 1364 of file being.h.
Referenced by decUsage(), and incUsage().
|
staticprotected |
Definition at line 1347 of file being.h.
Referenced by nextTile(), and reReadConfig().
|
staticprotected |
Definition at line 1350 of file being.h.
Referenced by reReadConfig(), ActorManager::updateBadges(), updateBadgesPosition(), and updateCoords().
|
protected |
Walk speed for x and y movement values. In pixels per second.
Definition at line 1297 of file being.h.
Referenced by getWalkSpeed(), nextTile(), and setWalkSpeed().
|
protected |
Definition at line 1314 of file being.h.
Referenced by LocalPlayer::attack(), botFixOffset(), botLogic(), calcDirection(), LocalPlayer::changeEquipmentBeforeAttack(), LocalPlayer::fixAttackTarget(), LocalPlayer::fixPos(), LocalPlayer::followMoveTo(), LocalPlayer::getLastAttackX(), getMoveAction(), LocalPlayer::getPathLength(), getSitAction(), getTileX(), LocalPlayer::isReachable(), logic(), LocalPlayer::logic(), LocalPlayer::move(), moveBotTo(), LocalPlayer::moveToHome(), LocalPlayer::moveToTarget(), LocalPlayer::navigateTo(), nextTile(), LocalPlayer::nextTile(), LocalPlayer::pickUp(), LocalPlayer::pickUpItems(), LocalPlayer::setGotoTarget(), LocalPlayer::setHome(), LocalPlayer::setRealPos(), LocalPlayer::setTarget(), LocalPlayer::startWalking(), updateBotDirection(), updateBotFollow(), LocalPlayer::updateCoords(), LocalPlayer::updateMusic(), and LocalPlayer::withinAttackRange().
|
protected |
Definition at line 1315 of file being.h.
Referenced by LocalPlayer::attack(), botFixOffset(), botLogic(), calcDirection(), LocalPlayer::changeEquipmentBeforeAttack(), LocalPlayer::fixAttackTarget(), LocalPlayer::fixPos(), LocalPlayer::followMoveTo(), LocalPlayer::getLastAttackY(), getMoveAction(), LocalPlayer::getPathLength(), getSitAction(), getTileY(), LocalPlayer::isReachable(), logic(), LocalPlayer::logic(), LocalPlayer::move(), moveBotTo(), LocalPlayer::moveToHome(), LocalPlayer::moveToTarget(), LocalPlayer::navigateTo(), nextTile(), LocalPlayer::nextTile(), LocalPlayer::pickUp(), LocalPlayer::pickUpItems(), LocalPlayer::setGotoTarget(), LocalPlayer::setHome(), LocalPlayer::setRealPos(), LocalPlayer::setTarget(), LocalPlayer::startWalking(), updateBotDirection(), updateBotFollow(), LocalPlayer::updateCoords(), LocalPlayer::updateMusic(), and LocalPlayer::withinAttackRange().