diff options
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/src/being.cpp b/src/being.cpp index 0c3e1160b..2087b6e0b 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -98,43 +98,50 @@ Being::Being(const int id, const Type type, const uint16_t subtype, ActorSprite(id), mNextSound(), mInfo(BeingInfo::unknown), - mActionTime(0), mEmotionSprite(nullptr), - mEmotionTime(0), - mSpeechTime(0), mAnimationEffect(nullptr), - mAttackSpeed(350), - mAction(STAND), - mSubType(0xFFFF), - mDirection(DOWN), - mDirectionDelayed(0), - mSpriteDirection(DIRECTION_DOWN), mSpriteAction(SpriteAction::STAND), mName(), mRaceName(), mPartyName(), mGuildName(), + mSpeech(), mDispName(nullptr), mNameColor(nullptr), - mShowName(false), mEquippedWeapon(nullptr), mPath(), - mSpeech(), mText(nullptr), mTextColor(nullptr), - mLevel(0), mDest(), - mSpriteIDs(), mSpriteColors(), + mSpriteIDs(), mSpriteColorsIds(), - mGender(GENDER_UNSPECIFIED), mGuilds(), mParty(nullptr), - mIsGM(false), + mActionTime(0), + mEmotionTime(0), + mSpeechTime(0), + mAttackSpeed(350), + mLevel(0), mAttackRange(1), + mGender(GENDER_UNSPECIFIED), + mAction(STAND), + mSubType(0xFFFF), + mDirection(DOWN), + mDirectionDelayed(0), + mSpriteDirection(DIRECTION_DOWN), + mShowName(false), + mIsGM(false), mType(type), mSpeechBubble(new SpeechBubble), mWalkSpeed(Net::getPlayerHandler()->getDefaultWalkSpeed()), + mIp(), + mSpriteRemap(new int[20]), + mSpriteHide(new int[20]), + mComment(), + mPet(nullptr), + mOwner(nullptr), + mSpecialParticle(nullptr), mX(0), mY(0), mDamageTaken(0), @@ -148,29 +155,22 @@ Being::Being(const int id, const Type type, const uint16_t subtype, mTalkTime(0), mOtherTime(0), mTestTime(cur_time), - mErased(false), - mEnemy(false), - mIp(""), mAttackDelay(0), mMinHit(0), mMaxHit(0), mCriticalHit(0), mPvpRank(0), - mSpriteRemap(new int[20]), - mSpriteHide(new int[20]), - mComment(""), + mNumber(100), + mPetId(0), + mLook(0), + mHairColor(0), + mErased(false), + mEnemy(false), mGotComment(false), mAdvanced(false), mShop(false), mAway(false), - mInactive(false), - mNumber(100), - mHairColor(0), - mPet(nullptr), - mPetId(0), - mLook(0), - mOwner(nullptr), - mSpecialParticle(nullptr) + mInactive(false) { for (int f = 0; f < 20; f ++) { |