![]() |
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 |
![]() | |
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) |
![]() | |
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 |
![]() | |
virtual | ~Sprite () |
virtual const void * | getHash () const |
virtual const void * | getHash2 () const |
![]() | |
virtual | ~Actor () |
const Vector & | getPixelPositionF () const |
int | getPixelX () const |
virtual int | getPixelY () const |
const Map * | getMap () const |
![]() | |
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 void | load () |
static void | unload () |
![]() | |
static void | setEnableDelay (bool b) |
Data Fields | |
NextSoundInfo | mNextSound |
![]() | |
std::vector< Sprite * > | mSprites |
![]() | |
int | mPixelX |
int | mPixelY |
Protected Types | |
typedef std::map< int, ParticleInfo * > | SpriteParticleInfo |
typedef SpriteParticleInfo::iterator | SpriteParticleInfoIter |
![]() | |
typedef std::list< ActorSpriteListener * > | ActorSpriteListeners |
typedef ActorSpriteListeners::iterator | ActorSpriteListenerIterator |
![]() | |
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 |
![]() | |
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) |
![]() | |
void | redraw () const |
void | updateImages () const |
bool | updateFromCache () const |
void | initCurrentCacheItem () const |
![]() | |
Sprite () | |
![]() | |
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 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 AnimatedSprite * | targetCursor [static_cast< size_t >(TargetCursorType::NUM_TCT)][static_cast< size_t >(TargetCursorSize::NUM_TC)] |
static bool | loaded = false |
![]() | |
static bool | mEnableDelay = true |
Friends | |
class | ActorManager |
class | BeingEquipBackend |
class | LocalPlayer |
Additional Inherited Members | |
![]() | |
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().